From 4757ea6a1212dab6ee82421a20b152d1f16e44fb Mon Sep 17 00:00:00 2001 From: taiyu Date: Thu, 27 Aug 2015 23:42:26 -0700 Subject: [PATCH] forgot visibility of floating containers --- sway/container.c | 16 ++++++++++++---- 1 file 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); + } } } }