dix: Don't let a driver without a ProximityClassRec post events
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
22715e465b
commit
11840595a1
|
@ -1546,7 +1546,7 @@ GetProximityEvents(InternalEvent *events, DeviceIntPtr pDev, int type, const Val
|
|||
/* Sanity checks. */
|
||||
if ((type != ProximityIn && type != ProximityOut) || !mask_in)
|
||||
return 0;
|
||||
if (!pDev->valuator)
|
||||
if (!pDev->valuator || !pDev->proximity)
|
||||
return 0;
|
||||
|
||||
valuator_mask_copy(&mask, mask_in);
|
||||
|
|
Loading…
Reference in New Issue
Block a user