diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-20 17:02:50 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-22 15:44:56 +1000 |
commit | 438a4eafa5d14ab676827f7a5d58782c02db4cdf (patch) | |
tree | f2b7e4aaa8922cb5fb2467d0dd89cfa37be1b0b2 /Xi/exevents.c | |
parent | b12d302df8283186ce87882c29b2b0294adb2770 (diff) |
input: remove nested union from InternalEvent.
There's no need for internal events to be a struct with a single nested
union, we might as well make the union itself the InternalEvent.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/exevents.c')
-rw-r--r-- | Xi/exevents.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index d7fb59935..884fe724d 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -123,7 +123,7 @@ RegisterOtherDevice(DeviceIntPtr device) Bool IsPointerEvent(InternalEvent* event) { - switch(event->u.any.type) + switch(event->any.type) { case ET_ButtonPress: case ET_ButtonRelease: @@ -953,7 +953,7 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device) CHECKEVENT(ev); - if (ev->u.any.type == ET_Raw) + if (ev->any.type == ET_Raw) { ProcessRawEvent((RawDeviceEvent*)ev, device); return; |