Commit 554592cd authored by Peter Hutterer's avatar Peter Hutterer

DGA: silence compiler warning.

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@redhat.com>
parent 0dbcbd35
......@@ -1048,7 +1048,7 @@ DGAProcessKeyboardEvent (ScreenPtr pScreen, dgaEvent *de, DeviceIntPtr keybd)
de->u.event.state = keyc->state | pointer->button->state;
de->u.u.type = (IEventBase - 1) + coreEquiv; /* change to XI event */
UpdateDeviceState(keybd, de, 1);
UpdateDeviceState(keybd, (xEvent*)de, 1);
de->u.u.type = *XDGAEventBase + coreEquiv; /* change back */
/*
......@@ -1095,7 +1095,7 @@ DGAProcessPointerEvent (ScreenPtr pScreen, dgaEvent *de, DeviceIntPtr mouse)
de->u.event.state = butc->state | GetPairedDevice(mouse)->key->state;
de->u.u.type = (IEventBase - 1) + coreEquiv; /* change to XI event */
UpdateDeviceState(mouse, de, 1);
UpdateDeviceState(mouse, (xEvent*)de, 1);
de->u.u.type = *XDGAEventBase + coreEquiv; /* change back */
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment