diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libdraw/x11-mouse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libdraw/x11-mouse.c b/src/libdraw/x11-mouse.c index d2d0126b..92a099b0 100644 --- a/src/libdraw/x11-mouse.c +++ b/src/libdraw/x11-mouse.c @@ -93,6 +93,13 @@ _ioproc(void *arg) 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); |