diff options
author | okan <okan> | 2015-08-27 18:40:09 +0000 |
---|---|---|
committer | okan <okan> | 2015-08-27 18:40:09 +0000 |
commit | 19826222f6dc85116145acaf8210c83c2c91dab6 (patch) | |
tree | 94826e231454e32003bc9750f381e6a2b9c568f2 /client.c | |
parent | 5391659629a7fa75b7447e824e56e179c10ca642 (diff) | |
download | cwm-19826222f6dc85116145acaf8210c83c2c91dab6.tar.gz cwm-19826222f6dc85116145acaf8210c83c2c91dab6.tar.xz cwm-19826222f6dc85116145acaf8210c83c2c91dab6.zip |
Move client cycle grab/ungrab into a more relevant place; while here,
update comments about why we need to grab/ungrab the keyboard.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client.c b/client.c index ff492de..f30910a 100644 --- a/client.c +++ b/client.c @@ -659,6 +659,10 @@ client_cycle(struct screen_ctx *sc, int flags) struct client_ctx *newcc, *oldcc; int again = 1; + /* For X apps that ignore events. */ + XGrabKeyboard(X_Dpy, sc->rootwin, True, + GrabModeAsync, GrabModeAsync, CurrentTime); + if (TAILQ_EMPTY(&sc->clientq)) return; |