glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit 11da31d2a4539469b086f8f40a94ca03cd1ef43b
parent f89ceeea69b691ad63e0189581e39eaa14b5a43f
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue, 22 Oct 2019 08:21:54 +0200

Only move/resize when moving with a window selected

Diffstat:
glazier.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/glazier.c b/glazier.c @@ -286,12 +286,11 @@ cb_motion(xcb_generic_event_t *ev) int x, y; static int last_time = 0; xcb_motion_notify_event_t *e; - xcb_window_t *child; e = (xcb_motion_notify_event_t *)ev; /* ignore some motion events if they happen too often */ - if (e->time - last_time < 32) + if (e->time - last_time < 32 || curwid == scrn->root) return 0; if (verbose)