summaryrefslogtreecommitdiff
path: root/Xi/exevents.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-09 19:11:27 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-09 20:50:32 +1000
commit4fee979d0632751d3d54d2115e84e9654edf0622 (patch)
treef3d7a392c4b7aefdd6eab6408279045206e36c39 /Xi/exevents.c
parent6b467bf879eeb77d167ef321e6dda97ca9d7010a (diff)
Xi: silence compiler warnings about "wrong" event types.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/exevents.c')
-rw-r--r--Xi/exevents.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 29dceca0e..478866553 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -1002,12 +1002,13 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device)
if (grab)
- DeliverGrabbedEvent(event, device, deactivateDeviceGrab);
+ DeliverGrabbedEvent((InternalEvent*)event, device, deactivateDeviceGrab);
else if (device->focus && !IsPointerEvent((InternalEvent*)ev))
- DeliverFocusedEvent(device, event, GetSpriteWindow(device));
+ DeliverFocusedEvent(device, (InternalEvent*)event,
+ GetSpriteWindow(device));
else
- DeliverDeviceEvents(GetSpriteWindow(device), event, NullGrab,
- NullWindow, device);
+ DeliverDeviceEvents(GetSpriteWindow(device), (InternalEvent*)event,
+ NullGrab, NullWindow, device);
if (deactivateDeviceGrab == TRUE)
(*device->deviceGrab.DeactivateGrab) (device);