From e310136e02ada4862c250280034d36fbfa24fc61 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 4 Oct 2017 18:12:27 +0200 Subject: Mouse drag translates pointer position to image area This makes mouse panning more direct and faster. --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') diff --git a/main.c b/main.c index aa11616..f7e5762 100644 --- a/main.c +++ b/main.c @@ -741,6 +741,7 @@ void run(void) XPeekEvent(win.env.dpy, &nextev); switch (ev.type) { case ConfigureNotify: + case MotionNotify: discard = ev.type == nextev.type; break; case KeyPress: -- cgit v1.2.3