diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/container.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sway/container.c b/sway/container.c index 19a40090..d60aa6ff 100644 --- a/sway/container.c +++ b/sway/container.c @@ -603,10 +603,18 @@ void update_visibility_output(swayc_t *container, wlc_handle output) { } } // Update visibility for children - else if (container->children) { - int i, len = container->children->length; - for (i = 0; i < len; ++i) { - update_visibility_output(container->children->items[i], output); + else { + if (container->children) { + int i, len = container->children->length; + for (i = 0; i < len; ++i) { + update_visibility_output(container->children->items[i], output); + } + } + if (container->floating) { + int i, len = container->floating->length; + for (i = 0; i < len; ++i) { + update_visibility_output(container->floating->items[i], output); + } } } } |