diff options
author | okan | 2013-10-19 19:39:34 +0000 |
---|---|---|
committer | okan | 2013-10-19 19:39:34 +0000 |
commit | 69e13f1a98399a3c2d65af3b8e2283fe6cec512b (patch) | |
tree | 18ec0acf69c0365f7ecea572d319a0df07b76035 /conf.c | |
parent | 48d530ee6fa7562b2c00f16e84e5b273b03f08ab (diff) | |
download | cwm-69e13f1a98399a3c2d65af3b8e2283fe6cec512b.tar.gz |
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 '')
-rw-r--r-- | conf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: conf.c,v 1.146 2013/10/07 13:40:26 okan Exp $ + * $OpenBSD: conf.c,v 1.147 2013/10/19 19:39:34 okan Exp $ */ #include <sys/param.h> @@ -649,6 +649,8 @@ conf_grab_mouse(Window win) { struct mousebinding *mb; + xu_btn_ungrab(win); + TAILQ_FOREACH(mb, &Conf.mousebindingq, entry) { if (mb->flags != MOUSEBIND_CTX_WIN) continue; |