diff options
author | oga <oga> | 2008-06-25 22:37:29 +0000 |
---|---|---|
committer | oga <oga> | 2008-06-25 22:37:29 +0000 |
commit | 2dfd021f8bd4298624d10b18969e52032a198a6a (patch) | |
tree | bd39aa0bdcf25d0953323f32cf1cdda117fd7bb5 /client.c | |
parent | 77058c59e296434dc2ba1f39e27f64630b12f656 (diff) | |
download | cwm-2dfd021f8bd4298624d10b18969e52032a198a6a.tar.gz cwm-2dfd021f8bd4298624d10b18969e52032a198a6a.tar.xz cwm-2dfd021f8bd4298624d10b18969e52032a198a6a.zip |
Actually grab the correct mouse buttons for a window, instead of doing the
old hardcoded ones (which now can be wrong). tested by todd@ and johan@.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c index 0f5ac8d..957f16d 100644 --- a/client.c +++ b/client.c @@ -272,8 +272,7 @@ client_setactive(struct client_ctx *cc, int fg) XInstallColormap(X_Dpy, cc->cmap); XSetInputFocus(X_Dpy, cc->win, RevertToPointerRoot, CurrentTime); - xu_btn_grab(cc->pwin, Mod1Mask, AnyButton); - xu_btn_grab(cc->pwin, ControlMask|Mod1Mask, Button1); + conf_grab_mouse(cc); /* * If we're in the middle of alt-tabbing, don't change * the order please. |