diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-05-27 10:10:48 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-03 14:43:05 +1000 |
commit | c042a267c40d35b4fb947f4bafdfeb541dd9d772 (patch) | |
tree | 4dbb401fc4ef89dc53583fec9c989779a2e59b2e /dix | |
parent | b75cdb5bf76303162e947173e8ee68253a861272 (diff) |
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>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c index 1aadd57ee..3fae52df0 100644 --- a/dix/events.c +++ b/dix/events.c @@ -3997,7 +3997,7 @@ DeliverGrabbedEvent(InternalEvent *event, DeviceIntPtr thisDev, rc = EventToXI2(event, &xi2); if (rc == Success) { - int evtype = ((xGenericEvent*)xi2)->evtype; + int evtype = xi2_get_type(xi2); mask = grab->xi2mask[XIAllDevices][evtype/8] | grab->xi2mask[XIAllMasterDevices][evtype/8] | grab->xi2mask[thisDev->id][evtype/8]; |