Bring unmanaged windows to front on output arrange

Fixes #312
This commit is contained in:
Drew DeVault 2015-12-16 19:20:34 -05:00
parent 2231acb790
commit f6da4dda4b
5 changed files with 37 additions and 1 deletions

View file

@ -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: