]> git.mdlowis.com Git - projs/tide.git/commitdiff
optimized mouse handling again
authorMichael D. Lowis <mike@mdlowis.com>
Thu, 17 Jan 2019 02:07:30 +0000 (21:07 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Thu, 17 Jan 2019 02:07:30 +0000 (21:07 -0500)
TODO.md
src/tide.c

diff --git a/TODO.md b/TODO.md
index 5f9989415293f8b951fb8feb82b120c942d71d57..5e3ea2c7c978fc81229193a89e0747c64299f050 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -7,7 +7,6 @@
 * registrar: doesnt match open windows when new file created and is then opened for edit or line number
 * registrar: group by hostname or group env var in registrar
 * tide: gap buffer does not handle UTF-8 currently
-* tide: sometimes tide starts with white screen until an event occurs
 * tide: highlight current line if jumped to line is 0
 * tide: jumping to line should call XMapRaised
 
index bb22ec9c799503ea39b6965c0665c3e20b705aef..c541880012b35c671cf6b2a40e0cdc44a1b8ba5f 100644 (file)
@@ -251,9 +251,10 @@ static void xclientmsg(XConf* x, XEvent* e) {
 }
 
 static void xupdate(Job* job) {
-    int nqueued;
+    int nqueued, nevents;
     do {
         nqueued = XEventsQueued(X.display, QueuedAfterFlush);
+        XGetMotionEvents(X.display, X.self, CurrentTime, CurrentTime, &nevents);
         for (XEvent e; XPending(X.display);) {
             XNextEvent(X.display, &e);
             if (!XFilterEvent(&e, None) && X.eventfns[e.type])