From b1c2046efd856c4d32ba1a50a83e8b651f1769bd Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 21 May 2015 00:37:04 +0000 Subject: merge kbd and mouse grouptoggle --- kbfunc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'kbfunc.c') 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); } -- cgit 1.4.1