From 7957a470fd60e9d50057989595dd3b36010211e2 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 19 May 2008 12:56:58 +0000 Subject: finally implement keyboard binding for group toggling idea for the "slightly-less-abhorrent-hack-but-a-hack-nonetheless-TM" from oga@ grab and ungrab the keyboard to get around some silly X apps that like stealing events ok oga@ --- kbfunc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index a6e0da5..a55402a 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -429,6 +429,16 @@ kbfunc_client_nogroup(struct client_ctx *cc, void *arg) group_alltoggle(); } +void +kbfunc_client_grouptoggle(struct client_ctx *cc, void *arg) +{ + /* XXX for stupid X apps like xpdf and gvim */ + XGrabKeyboard(X_Dpy, cc->pwin, True, + GrabModeAsync, GrabModeAsync, CurrentTime); + + group_sticky_toggle_enter(cc); +} + void kbfunc_client_maximize(struct client_ctx *cc, void *arg) { -- cgit 1.4.1