diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2016-05-09 17:41:26 +0100 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2016-05-09 17:41:26 +0100 |
commit | 2fb4e5401ca224d704bd886d09c6f61bd66c26ea (patch) | |
tree | 2fef8450d98f7a93566940d90bddaa45e95b2341 /sway/container.c | |
parent | 8ee764e0c24378fe3d8e430bdbb40ea58ac9c28d (diff) |
sway/container.c: fix segfault where view is assigned prematurely
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index b49b32ee..1a15aae1 100644 --- a/sway/container.c +++ b/sway/container.c @@ -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; |