]> git.mdlowis.com Git - projs/tide.git/commitdiff
Hopefully fixed performance regression with mouse dragging
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 24 May 2017 20:16:17 +0000 (16:16 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 24 May 2017 20:16:17 +0000 (16:16 -0400)
TODO.md
lib/x11.c

diff --git a/TODO.md b/TODO.md
index beb9d2b714adfff08596e638401e14dbfecf0ee6..db3604a1c6407078ff9f515115be3f082192a744 100644 (file)
--- 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:
index 027846485624c2575d5a556ebcb67065a815375e..2c890621744ffa601fad1287faf891fce53838d9 100644 (file)
--- 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))