aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-08 19:27:25 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-08 19:41:45 +0200
commit9cd079a6a24acf4e95ddc483a6349828feabb465 (patch)
tree38f8b75f48a7b5e9d3476f9418c3b7a7572f7b91 /monsterwm.c
parentb6ff7aba975782942a2d251ef9b69f07cdf2cc15 (diff)
transients and floating windows stay on top of others
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/monsterwm.c b/monsterwm.c
index d6d5241..3436254 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -917,10 +917,10 @@ void update_current(client *c) {
PropModeReplace, (unsigned char *)&current->win, 1);
XSetInputFocus(dis, current->win, RevertToPointerRoot, CurrentTime);
- /* keep transient windows on top of regular windows */
- int trans = 0;
- for (c=head; c; c=c->next) if (c->istransient) trans = XRaiseWindow(dis, c->win);
- if (!trans || current->isfloating) XRaiseWindow(dis, current->win);
+ /* keep transient and floating windows on top of regular windows */
+ int tf = 0;
+ for (c=head; c; c=c->next) if (c->istransient || c->isfloating) tf = XRaiseWindow(dis, c->win);
+ if (!tf || current->isfloating || current->istransient) XRaiseWindow(dis, current->win);
if (CLICK_TO_FOCUS) XUngrabButton(dis, Button1, None, current->win);
XSync(dis, False);