dix: don't accept Button 0 presses in GPE.

This commit is contained in:
Peter Hutterer 2009-01-09 11:40:18 +10:00
parent 0c6987df3b
commit a3f9e887d9

View File

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