diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-27 23:42:26 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-27 23:42:26 -0700 |
commit | 4757ea6a1212dab6ee82421a20b152d1f16e44fb (patch) | |
tree | f24d9614b7d0be9163d0abe224f8aa283aff9238 /sway | |
parent | 5678d824e43d1ae2e2abaa1bc9a03391a4683a86 (diff) |
forgot visibility of floating containers
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); + } } } } |