diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 21:56:29 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 21:56:29 +1000 |
commit | 1c777e3c1127dec35166007c6e3ca65e34735eb5 (patch) | |
tree | 93d85a0498c24c627be55e893c3abf3016122076 /src | |
parent | 443a69833a29b557f78ec09f9eef395f52a64e10 (diff) |
Type-cast before passing into wireToFooBarEvent.
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index c6c2607..d017cab 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -797,7 +797,7 @@ XInputWireToEvent( case XI_KeyPress: case XI_KeyRelease: *re = *save; - if (!wireToDeviceEvent(event, re)) + if (!wireToDeviceEvent((xXIDeviceEvent*)event, (XIDeviceEvent*)re)) { printf("XInputWireToEvent: CONVERSION FAILURE! evtype=%d\n", ge->evtype); @@ -806,7 +806,8 @@ XInputWireToEvent( return ENQUEUE_EVENT; case XI_DeviceChanged: *re = *save; - if (!wireToDeviceChangedEvent(event, re)) + if (!wireToDeviceChangedEvent((xXIDeviceChangedEvent*)event, + (XIDeviceChangedEvent*)re)) { printf("XInputWireToEvent: CONVERSION FAILURE! evtype=%d\n", ge->evtype); @@ -815,7 +816,8 @@ XInputWireToEvent( return ENQUEUE_EVENT; case XI_HierarchyChanged: *re = *save; - if (!wireToHierarchyChangedEvent(event, re)) + if (!wireToHierarchyChangedEvent((xXIDeviceHierarchyEvent*)event, + (XIDeviceHierarchyEvent*)re)) { printf("XInputWireToEvent: CONVERSION FAILURE! evtype=%d\n", ge->evtype); @@ -825,7 +827,7 @@ XInputWireToEvent( case XI_RawEvent: *re = *save; - if (!wireToRawEvent(event, re)) + if (!wireToRawEvent((xXIRawDeviceEvent*)event, (XIRawDeviceEvent*)re)) { printf("XInputWireToEvent: CONVERSION FAILURE! evtype=%d\n", ge->evtype); @@ -837,7 +839,8 @@ XInputWireToEvent( case XI_FocusIn: case XI_FocusOut: *re = *save; - if (!wireToEnterLeave(event, re)) + if (!wireToEnterLeave((xXIEnterEvent*)event, + (XIEnterEvent*)re)) { printf("XInputWireToEvent: CONVERSION FAILURE! evtype=%d\n", ge->evtype); |