diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-14 15:27:23 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-14 15:27:23 +0200 |
| commit | bbcb0f869ed76b2ffaf3e28d0c82399aae2d14a8 (patch) | |
| tree | 9fb5cbc233382fb0713770f23c27f311474d6f9f /monsterwm.c | |
| parent | feca569a5d33b6bea6b8350c268b1bdcf69c3756 (diff) | |
grabbing buttons is now handled with grabbuttons() function
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/monsterwm.c b/monsterwm.c index d2609ab..c04714b 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -939,15 +939,11 @@ void update_current(client *c) { for (client *c=head; c; c=c->next) { XSetWindowBorderWidth(dis, c->win, (c->isfullscreen ? 0 : border_width)); XSetWindowBorder(dis, c->win, (current == c ? win_focus : win_unfocus)); - if (CLICK_TO_FOCUS) XGrabButton(dis, AnyButton, AnyModifier, c->win, True, - BUTTONMASK, GrabModeAsync, GrabModeAsync, None, None); } XChangeProperty(dis, root, netatoms[NET_ACTIVE], XA_WINDOW, 32, PropModeReplace, (unsigned char *)¤t->win, 1); XSetInputFocus(dis, current->win, RevertToPointerRoot, CurrentTime); XRaiseWindow(dis, current->win); - - if (CLICK_TO_FOCUS) XUngrabButton(dis, AnyButton, AnyModifier, current->win); XSync(dis, False); } |
