diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-07-28 05:56:36 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-07-28 05:56:36 +0200 |
| commit | b0009772340a5f9e3a02bf91833f5968f631a2a7 (patch) | |
| tree | f5133714eb9ede72ca8f147816e92e0760bf9aad | |
| parent | 579f5ed425c8a4e88edaf5de88e253190493d5b7 (diff) | |
bugfix: windows on empty workspaces with layout tabbed/stacked would spawn with 0x0 geometry
| -rw-r--r-- | sway/layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index 1d5944f8..1a046da4 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; |
