From 17b3450e68d6461351e6950ddfcefd66a75fc18a Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 24 May 2017 16:16:17 -0400 Subject: [PATCH] Hopefully fixed performance regression with mouse dragging --- TODO.md | 1 + lib/x11.c | 2 ++ 2 files changed, 3 insertions(+) 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)) -- 2.54.0