From: Michael D. Lowis Date: Mon, 23 Apr 2018 02:30:53 +0000 (-0400) Subject: compress motion events to just process the latest X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8e996195a4823f2efd70fb3dc3161b17f05d87b4;p=projs%2Ftide.git compress motion events to just process the latest --- 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;