Xi: silence compiler warnings about "wrong" event types.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -919,7 +919,7 @@ ProcessRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
|
|||||||
GrabPtr grab = device->deviceGrab.grab;
|
GrabPtr grab = device->deviceGrab.grab;
|
||||||
|
|
||||||
if (grab)
|
if (grab)
|
||||||
DeliverGrabbedEvent(ev, device, FALSE);
|
DeliverGrabbedEvent((InternalEvent*)ev, device, FALSE);
|
||||||
else { /* deliver to all root windows */
|
else { /* deliver to all root windows */
|
||||||
xEvent *xi;
|
xEvent *xi;
|
||||||
int i;
|
int i;
|
||||||
@@ -1077,12 +1077,13 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device)
|
|||||||
|
|
||||||
|
|
||||||
if (grab)
|
if (grab)
|
||||||
DeliverGrabbedEvent(event, device, deactivateDeviceGrab);
|
DeliverGrabbedEvent((InternalEvent*)event, device, deactivateDeviceGrab);
|
||||||
else if (device->focus && !IsPointerEvent((InternalEvent*)ev))
|
else if (device->focus && !IsPointerEvent((InternalEvent*)ev))
|
||||||
DeliverFocusedEvent(device, event, GetSpriteWindow(device));
|
DeliverFocusedEvent(device, (InternalEvent*)event,
|
||||||
|
GetSpriteWindow(device));
|
||||||
else
|
else
|
||||||
DeliverDeviceEvents(GetSpriteWindow(device), event, NullGrab,
|
DeliverDeviceEvents(GetSpriteWindow(device), (InternalEvent*)event,
|
||||||
NullWindow, device);
|
NullGrab, NullWindow, device);
|
||||||
|
|
||||||
if (deactivateDeviceGrab == TRUE)
|
if (deactivateDeviceGrab == TRUE)
|
||||||
(*device->deviceGrab.DeactivateGrab) (device);
|
(*device->deviceGrab.DeactivateGrab) (device);
|
||||||
|
|||||||
Reference in New Issue
Block a user