diff options
author | Luminarys <[email protected]> | 2015-08-17 10:18:06 -0500 |
---|---|---|
committer | Luminarys <[email protected]> | 2015-08-17 10:18:06 -0500 |
commit | 47ec999e7184d29c2911af20ce696d1f4e948e29 (patch) | |
tree | 15e595e631b97210708ffae99684eb6e00a9c70c /sway/layout.c | |
parent | da77dc45a9fe8fd4c2d7db474d14257501dd1813 (diff) |
Fixes to floating and umanaged views
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/layout.c b/sway/layout.c index c53b9dad..1bc65050 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -73,11 +73,12 @@ swayc_t *remove_child(swayc_t *parent, swayc_t *child) { break; } } - } - for (i = 0; i < parent->children->length; ++i) { - if (parent->children->items[i] == child) { - list_del(parent->children, i); - break; + } else { + for (i = 0; i < parent->children->length; ++i) { + if (parent->children->items[i] == child) { + list_del(parent->children, i); + break; + } } } if (parent->focused == child) { |