From a7aa847332ee80b281feeab6ce0544e48563d714 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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index e6798f9..1615788 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.105 2015/01/19 14:54:16 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.106 2015/05/21 00:37:04 okan Exp $ */ #include @@ -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 v1.2.3-2-gb3c3