mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Merge pull request #650 from neosilky/segfault
sway/container.c: fix segfault where view is assigned prematurely
This commit is contained in:
commit
c7c2bf542a
1 changed files with 1 additions and 1 deletions
|
@ -820,10 +820,10 @@ swayc_t *swayc_tabbed_stacked_parent(swayc_t *view) {
|
|||
return NULL;
|
||||
}
|
||||
do {
|
||||
view = view->parent;
|
||||
if (view->layout == L_TABBED || view->layout == L_STACKED) {
|
||||
parent = view;
|
||||
}
|
||||
view = view->parent;
|
||||
} while (view && view->type != C_WORKSPACE);
|
||||
|
||||
return parent;
|
||||
|
|
Loading…
Reference in a new issue