diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-24 22:30:44 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | 1f2e399ade77070a2d0b82856ad9a3eef96b8676 (patch) | |
tree | c469197e140051aea912cb173723c7e55ce1e410 /sway/tree/arrange.c | |
parent | Send frame done to floating views (diff) | |
download | sway-1f2e399ade77070a2d0b82856ad9a3eef96b8676.tar.gz sway-1f2e399ade77070a2d0b82856ad9a3eef96b8676.tar.zst sway-1f2e399ade77070a2d0b82856ad9a3eef96b8676.zip |
Implement floating
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r-- | sway/tree/arrange.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index bdef56ea..da4f7889 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c | |||
@@ -247,6 +247,18 @@ void arrange_children_of(struct sway_container *parent) { | |||
247 | arrange_children_of(child); | 247 | arrange_children_of(child); |
248 | } | 248 | } |
249 | } | 249 | } |
250 | |||
251 | // If container is a workspace, process floating containers too | ||
252 | if (parent->type == C_WORKSPACE) { | ||
253 | struct sway_workspace *ws = workspace->sway_workspace; | ||
254 | for (int i = 0; i < ws->floating->children->length; ++i) { | ||
255 | struct sway_container *child = ws->floating->children->items[i]; | ||
256 | if (child->type != C_VIEW) { | ||
257 | arrange_children_of(child); | ||
258 | } | ||
259 | } | ||
260 | } | ||
261 | |||
250 | container_damage_whole(parent); | 262 | container_damage_whole(parent); |
251 | update_debug_tree(); | 263 | update_debug_tree(); |
252 | } | 264 | } |