sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit d07eaed79ffb7284528dfe12f5d37cee8ff555d4
parent ee67c5bee34c4a98f8df3db68e92eaa55f1d579d
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 28 Jul 2016 07:42:43 -0400

Merge pull request #793 from thejan2009/workspace_layout_first_window_fix

bugfix: invisible windows on empty workspace with tabbed/stacked layout
Diffstat:
Msway/layout.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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;