Avoid bad mouse buffering.
This commit is contained in:
parent
1ed1c638a8
commit
732be70cc4
1 changed files with 7 additions and 0 deletions
|
|
@ -93,6 +93,13 @@ _ioproc(void *arg)
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
case ButtonRelease:
|
case ButtonRelease:
|
||||||
case MotionNotify:
|
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)
|
if(_xtoplan9mouse(_x.mousecon, &xevent, &m) < 0)
|
||||||
continue;
|
continue;
|
||||||
send(mc->c, &m);
|
send(mc->c, &m);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue