mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: don't accept Button 0 presses in GPE.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user