Keep floating windows on top of the stack

This commit is contained in:
Julien Danjou 2008-03-03 19:04:39 +01:00
parent 6231a0451c
commit 9d98d71ad1

View file

@ -210,6 +210,14 @@ client_focus(Client *c, int screen, Bool raise)
{
Client *client;
wc.stack_mode = Below;
wc.sibling = None;
for(client = globalconf.clients; client; client = client->next)
if(client != c && client_isvisible(client, c->screen) && client->isfloating)
{
XConfigureWindow(globalconf.display, client->win, CWSibling | CWStackMode, &wc);
wc.sibling = client->win;
}
XConfigureWindow(globalconf.display, c->win, CWSibling | CWStackMode, &wc);
wc.sibling = c->win;
for(client = globalconf.clients; client; client = client->next)
if(client != c && IS_TILED(client, c->screen))