From bbcb0f869ed76b2ffaf3e28d0c82399aae2d14a8 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Sat, 14 Jan 2012 15:27:23 +0200 Subject: grabbing buttons is now handled with grabbuttons() function --- monsterwm.c | 4 ---- 1 file changed, 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); } -- cgit v1.3.1