diff options
author | okan <okan> | 2013-10-19 19:39:34 +0000 |
---|---|---|
committer | okan <okan> | 2013-10-19 19:39:34 +0000 |
commit | a2013ee9dd9b152c044f8120a89c3d5aa17af4ea (patch) | |
tree | 71597013b401f6ff79ba57672fe6b53ed10714ca /client.c | |
parent | 083a023f2c0f36676d1015e1713ccac1b99bad59 (diff) | |
download | cwm-a2013ee9dd9b152c044f8120a89c3d5aa17af4ea.tar.gz cwm-a2013ee9dd9b152c044f8120a89c3d5aa17af4ea.tar.xz cwm-a2013ee9dd9b152c044f8120a89c3d5aa17af4ea.zip |
Using xu_btn_ungrab() buttons during client_leave doesn't work (error
BadValue) when the modifier is already AnyModifier . Instead alter xu_btn_ungrab() to ungrab AnyButton/AnyModifier and call it only when a client is coming into focus in client_setactive(), instead of iterating over ignore mods - matches how we handle key grabs.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/client.c b/client.c index 0733f88..cd0732f 100644 --- a/client.c +++ b/client.c @@ -186,15 +186,10 @@ client_delete(struct client_ctx *cc) void client_leave(struct client_ctx *cc) { - struct screen_ctx *sc; - if (cc == NULL) cc = client_current(); if (cc == NULL) return; - - sc = cc->sc; - xu_btn_ungrab(sc->rootwin, AnyModifier, Button1); } void |