sway

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

commit bf0603cd2d905554cc57d121b56b6708bb1d382b
parent b84dfa794c4bc24d3338995cf89fb4864ab63e99
Author: emersion <contact@emersion.fr>
Date:   Tue,  1 May 2018 08:35:08 +0100

Merge pull request #1876 from RyanDwyer/view-unmap-segfault

Fix segfault in view_unmap()
Diffstat:
Msway/tree/view.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -302,7 +302,11 @@ void view_unmap(struct sway_view *view) { view->swayc = NULL; view->surface = NULL; - arrange_children_of(parent); + if (parent->type == C_OUTPUT) { + arrange_output(parent); + } else { + arrange_children_of(parent); + } } void view_update_position(struct sway_view *view, double ox, double oy) {