diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-09 03:05:06 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-09 03:19:18 +0200 |
| commit | c11b05f09eb4ef5740fe3fc7c1f4805a9f914bdc (patch) | |
| tree | 46110aea3f22c505fa27057d7947ac0783abcf6d /monsterwm.c | |
| parent | 9f4ddba4c37ea6afc59ea4071ba03f7ef1a4b018 (diff) | |
floating clients should get border
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c index 82efdea..ca29548 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -833,14 +833,17 @@ void update_current(client *c) { if (!(current = c)) { XDeleteProperty(dis, root, netatoms[NET_ACTIVE]); return; } XWindowChanges wc; - if (!c->isfloating && !c->istransient) for (wc.sibling = c->win, c=head; c; c=c->next) { + if (current->isfloating || current->istransient) { + XSetWindowBorderWidth(dis, current->win, BORDER_WIDTH); + XRaiseWindow(dis, current->win); + } else for (wc.sibling = current->win, c=head; c; c=c->next) { XSetWindowBorderWidth(dis, c->win, (!head->next || c->isfullscrn || (mode==MONOCLE && !ISFFT(c))) ? 0:BORDER_WIDTH); wc.stack_mode = (c->isfloating || c->istransient) ? Above:Below; XConfigureWindow(dis, c->win, CWSibling|CWStackMode, &wc); if (CLICK_TO_FOCUS) XGrabButton(dis, Button1, None, c->win, True, ButtonPressMask, GrabModeAsync, GrabModeAsync, None, None); - } else XRaiseWindow(dis, current->win); + } tile(); XSetWindowBorder(dis, current->win, win_focus); |
