From 9d98d71ad1c8fde8e0d453c028c2f901d91a69da Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 3 Mar 2008 19:04:39 +0100 Subject: [PATCH] Keep floating windows on top of the stack --- client.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client.c b/client.c index 478d081c8..ce78d0af8 100644 --- a/client.c +++ b/client.c @@ -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))