From f6da4dda4b9598eab16d4d7d77a06693fa6df9c3 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 16 Dec 2015 19:20:34 -0500 Subject: Bring unmanaged windows to front on output arrange Fixes #312 --- sway/layout.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sway/layout.c') 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: -- cgit v1.2.3