From: Michael D. Lowis Date: Wed, 24 May 2017 20:16:17 +0000 (-0400) Subject: Hopefully fixed performance regression with mouse dragging X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=17b3450e68d6461351e6950ddfcefd66a75fc18a;p=projs%2Ftide.git Hopefully fixed performance regression with mouse dragging --- diff --git a/TODO.md b/TODO.md index beb9d2b..db3604a 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ Up Next: +* use transaction ids to only mark buffer dirty when it really is * Make Fn keys execute nth command in the tags buffers * arrow keys with selection should clear the selection instead of moving. * move by words is inconsistent. Example: diff --git a/lib/x11.c b/lib/x11.c index 0278464..2c89062 100644 --- a/lib/x11.c +++ b/lib/x11.c @@ -346,6 +346,8 @@ bool x11_events_await(unsigned int ms) { void x11_events_take(void) { XEvent e; + int nevents; + XGetMotionEvents(X.display, X.window, CurrentTime, CurrentTime, &nevents); while (XPending(X.display)) { XNextEvent(X.display, &e); if (!XFilterEvent(&e, None))