summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-12-16 19:20:34 -0500
committerDrew DeVault <[email protected]>2015-12-16 19:20:34 -0500
commitf6da4dda4b9598eab16d4d7d77a06693fa6df9c3 (patch)
tree20ef4c5270639ac0cf972ab75a497b9e461dccf2 /sway/layout.c
parent2231acb790d6c07324b70af78510e064b2cc2720 (diff)
Bring unmanaged windows to front on output arrange
Fixes #312
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 5c57d0a7..08d06d0b 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -465,6 +465,12 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
sway_log(L_DEBUG, "Arranging workspace #%d at %f, %f", i, child->x, child->y);
arrange_windows_r(child, -1, -1);
}
+
+ // Bring all unmanaged views to the front
+ for (i = 0; i < container->unmanaged->length; ++i) {
+ wlc_handle *handle = container->unmanaged->items[i];
+ wlc_view_bring_to_front(*handle);
+ }
}
return;
case C_VIEW: