From 32b13ec4cd42842a133aa6428f49638b0448efc9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 9 Apr 2009 19:11:27 +1000 Subject: [PATCH] Xi: silence compiler warnings about "wrong" event types. Signed-off-by: Peter Hutterer --- Xi/exevents.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Xi/exevents.c b/Xi/exevents.c index 4aa5fbf66..3be5c46ef 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -919,7 +919,7 @@ ProcessRawEvent(RawDeviceEvent *ev, DeviceIntPtr device) GrabPtr grab = device->deviceGrab.grab; if (grab) - DeliverGrabbedEvent(ev, device, FALSE); + DeliverGrabbedEvent((InternalEvent*)ev, device, FALSE); else { /* deliver to all root windows */ xEvent *xi; int i; @@ -1077,12 +1077,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);