mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #1876 from RyanDwyer/view-unmap-segfault
Fix segfault in view_unmap()
This commit is contained in:
commit
bf0603cd2d
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue