Avoid bad mouse buffering.

This commit is contained in:
rsc 2004-03-31 05:15:02 +00:00
parent 1ed1c638a8
commit 732be70cc4

View file

@ -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);