tcb_enter: do not change focus when mouse buttons are down - glazier - window management experiments
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1e6e010ff05bd712cd637361a35e7fb8689b2865
(DIR) parent 54f7505dfcfd577a266114dda914e651754b3736
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Fri, 25 Oct 2019 01:00:38 +0200
cb_enter: do not change focus when mouse buttons are down
Diffstat:
M glazier.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/glazier.c b/glazier.c
t@@ -347,6 +347,9 @@ cb_enter(xcb_generic_event_t *ev)
e = (xcb_enter_notify_event_t *)ev;
+ if (cursor.b)
+ return 0;
+
if (verbose)
fprintf(stderr, "%s 0x%08x\n", XEV(e), e->event);