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@
This commit is contained in:
okan
2008-05-19 12:56:58 +00:00
parent a94f4bbb7a
commit 7957a470fd
6 changed files with 23 additions and 1 deletions

View File

@@ -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)
{