aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-07-28 07:42:43 -0400
committerFurkan Sahin <furkan-dev@proton.me>2016-07-28 07:42:43 -0400
commiteb1be03fb9e6047ea0f17a607da4ef84d77615ff (patch)
tree567fe64aa50b45e0596a53fdb154df82e57556ab
parentf1277bb1177894304804e449761658f8aab34f54 (diff)
parentb0009772340a5f9e3a02bf91833f5968f631a2a7 (diff)
Merge pull request #793 from thejan2009/workspace_layout_first_window_fix
bugfix: invisible windows on empty workspace with tabbed/stacked layout
-rw-r--r--sway/layout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c
index cd5a31bc..fc7a31b4 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -799,7 +799,9 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
}
// update container size if it's a direct child in a tabbed/stacked layout
- if (swayc_tabbed_stacked_parent(container) != NULL) {
+ // if parent is a workspace, its actual_geometry won't be initialized
+ if (swayc_tabbed_stacked_parent(container) != NULL &&
+ container->parent->type != C_WORKSPACE) {
// Use parent actual_geometry as a base for calculating
// container geometry
container->width = container->parent->actual_geometry.size.w;