From 8e996195a4823f2efd70fb3dc3161b17f05d87b4 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 22 Apr 2018 22:30:53 -0400 Subject: [PATCH] compress motion events to just process the latest --- lib/x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/x11.c b/lib/x11.c index 1b8aa47..6828d2b 100644 --- a/lib/x11.c +++ b/lib/x11.c @@ -389,6 +389,7 @@ static void xbtnrelease(XEvent* e) { } static void xbtnmotion(XEvent* e) { + while (XCheckTypedEvent(X.display, MotionNotify, e)); X.now = e->xbutton.time; size_t row, col; KeyBtnState = e->xbutton.state; -- 2.49.0