diff options
author | D.B <thejan.2009@gmail.com> | 2016-07-31 10:22:18 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2016-07-31 10:22:18 +0200 |
commit | 9977b019289adbee8e5704f7b997609ff1b0c896 (patch) | |
tree | 5188f61ba4305eb55f2fddb631528130393ee4f4 /sway | |
parent | Merge pull request #805 from zandrmartin/swaybg-solid-color (diff) | |
download | sway-9977b019289adbee8e5704f7b997609ff1b0c896.tar.gz sway-9977b019289adbee8e5704f7b997609ff1b0c896.tar.zst sway-9977b019289adbee8e5704f7b997609ff1b0c896.zip |
Update container geometry on layout switch
Deeply nested containers which had their layouts changed didn't update
their actual_geometry, this messed up their child containers. Those got
width and height of 0, which was then decreased for stacked/tabbed
containers by title height. Underflow ensued, these containers suddenly
had height 4294967273. In short, not updating actual_geometry didn't
play nicely with nested containers.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 7247a407..28dcc996 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1998,6 +1998,7 @@ static struct cmd_results *cmd_layout(int argc, char **argv) { | |||
1998 | } | 1998 | } |
1999 | 1999 | ||
2000 | update_layout_geometry(parent, old_layout); | 2000 | update_layout_geometry(parent, old_layout); |
2001 | update_geometry(parent); | ||
2001 | 2002 | ||
2002 | arrange_windows(parent, parent->width, parent->height); | 2003 | arrange_windows(parent, parent->width, parent->height); |
2003 | 2004 | ||