diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-05-14 14:34:25 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-05-14 14:34:25 +0000 |
commit | 5b0af661b0b369a4edba71eb3c5d0a9ad81428ce (patch) | |
tree | 7025c24c0faba8bd7096661abe7c862c066ceb83 /sway | |
parent | 6436c4f78375b485e56c46271bf347f20fb2f7f4 (diff) |
Revert "sway/container.c: fix segfault where view is assigned prematurely"
Diffstat (limited to 'sway')
-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 1a15aae1..b49b32ee 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; |