Avoid bad mouse buffering.
diff --git a/src/libdraw/x11-mouse.c b/src/libdraw/x11-mouse.c
index d2d0126..92a099b 100644
--- a/src/libdraw/x11-mouse.c
+++ b/src/libdraw/x11-mouse.c
@@ -93,6 +93,13 @@
case ButtonPress:
case ButtonRelease:
case MotionNotify:
+ /* If the motion notifications are backing up, skip over some. */
+ if(xevent.type == MotionNotify){
+ while(XCheckWindowEvent(_x.mousecon, _x.drawable, MouseMask, &xevent)){
+ if(xevent.type != MotionNotify)
+ break;
+ }
+ }
if(_xtoplan9mouse(_x.mousecon, &xevent, &m) < 0)
continue;
send(mc->c, &m);