dix: don't accept Button 0 presses in GPE.
This commit is contained in:
parent
0c6987df3b
commit
a3f9e887d9
|
@ -987,6 +987,7 @@ GetPointerEvents(EventList *events, DeviceIntPtr pDev, int type, int buttons,
|
|||
((num_valuators + first_valuator) > pDev->valuator->numAxes) ||
|
||||
(type != MotionNotify && type != ButtonPress && type != ButtonRelease) ||
|
||||
(type != MotionNotify && !pDev->button) ||
|
||||
((type == ButtonPress || type == ButtonRelease) && !buttons) ||
|
||||
(type == MotionNotify && num_valuators <= 0))
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user