diff options
author | okan <okan> | 2015-05-21 00:37:04 +0000 |
---|---|---|
committer | okan <okan> | 2015-05-21 00:37:04 +0000 |
commit | b1c2046efd856c4d32ba1a50a83e8b651f1769bd (patch) | |
tree | 09f45b33171170c428c6a6ebf3775e553cd0748a /kbfunc.c | |
parent | 31d4fe9f33d5bb80c3e490c5dbbbd774b0a124a4 (diff) | |
download | cwm-b1c2046efd856c4d32ba1a50a83e8b651f1769bd.tar.gz cwm-b1c2046efd856c4d32ba1a50a83e8b651f1769bd.tar.xz cwm-b1c2046efd856c4d32ba1a50a83e8b651f1769bd.zip |
merge kbd and mouse grouptoggle
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kbfunc.c b/kbfunc.c index 388ead7..ba1f96a 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -435,9 +435,11 @@ kbfunc_client_nogroup(struct client_ctx *cc, union arg *arg) void kbfunc_client_grouptoggle(struct client_ctx *cc, union arg *arg) { - /* XXX for stupid X apps like xpdf and gvim */ - XGrabKeyboard(X_Dpy, cc->win, True, - GrabModeAsync, GrabModeAsync, CurrentTime); + if (arg->i == 0) { + /* XXX for stupid X apps like xpdf and gvim */ + XGrabKeyboard(X_Dpy, cc->win, True, + GrabModeAsync, GrabModeAsync, CurrentTime); + } group_toggle_membership_enter(cc); } |