dix: use xi2_get_type instead of manual typecast
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
b75cdb5bf7
commit
c042a267c4
|
@ -3997,7 +3997,7 @@ DeliverGrabbedEvent(InternalEvent *event, DeviceIntPtr thisDev,
|
||||||
rc = EventToXI2(event, &xi2);
|
rc = EventToXI2(event, &xi2);
|
||||||
if (rc == Success)
|
if (rc == Success)
|
||||||
{
|
{
|
||||||
int evtype = ((xGenericEvent*)xi2)->evtype;
|
int evtype = xi2_get_type(xi2);
|
||||||
mask = grab->xi2mask[XIAllDevices][evtype/8] |
|
mask = grab->xi2mask[XIAllDevices][evtype/8] |
|
||||||
grab->xi2mask[XIAllMasterDevices][evtype/8] |
|
grab->xi2mask[XIAllMasterDevices][evtype/8] |
|
||||||
grab->xi2mask[thisDev->id][evtype/8];
|
grab->xi2mask[thisDev->id][evtype/8];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user