mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Merge pull request #716 from Hummer12007/patch-1
Added a null check in tabbed_stacked_parent
This commit is contained in:
commit
cdb6a9e948
1 changed files with 2 additions and 2 deletions
|
@ -853,12 +853,12 @@ swayc_t *swayc_tabbed_stacked_parent(swayc_t *view) {
|
|||
if (!ASSERT_NONNULL(view)) {
|
||||
return NULL;
|
||||
}
|
||||
do {
|
||||
while (view->type != C_WORKSPACE && view->parent) {
|
||||
view = view->parent;
|
||||
if (view->layout == L_TABBED || view->layout == L_STACKED) {
|
||||
parent = view;
|
||||
}
|
||||
} while (view && view->type != C_WORKSPACE);
|
||||
}
|
||||
|
||||
return parent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue