summaryrefslogtreecommitdiff
path: root/dix/eventconvert.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-20 17:02:50 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-22 15:44:56 +1000
commit438a4eafa5d14ab676827f7a5d58782c02db4cdf (patch)
treef2b7e4aaa8922cb5fb2467d0dd89cfa37be1b0b2 /dix/eventconvert.c
parentb12d302df8283186ce87882c29b2b0294adb2770 (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 'dix/eventconvert.c')
-rw-r--r--dix/eventconvert.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dix/eventconvert.c b/dix/eventconvert.c
index 97fc2add3..403282cb3 100644
--- a/dix/eventconvert.c
+++ b/dix/eventconvert.c
@@ -69,7 +69,7 @@ static int eventToRawEvent(RawDeviceEvent *ev, xEvent **xi);
int
EventToCore(InternalEvent *event, xEvent *core)
{
- switch(event->u.any.type)
+ switch(event->any.type)
{
case ET_Motion:
case ET_ButtonPress:
@@ -117,7 +117,7 @@ EventToCore(InternalEvent *event, xEvent *core)
int
EventToXI(InternalEvent *ev, xEvent **xi, int *count)
{
- switch (ev->u.any.type)
+ switch (ev->any.type)
{
case ET_Motion:
case ET_ButtonPress:
@@ -134,7 +134,7 @@ EventToXI(InternalEvent *ev, xEvent **xi, int *count)
return Success;
}
- ErrorF("[dix] EventToXI: Not implemented for %d \n", ev->u.any.type);
+ ErrorF("[dix] EventToXI: Not implemented for %d \n", ev->any.type);
return BadImplementation;
}
@@ -153,7 +153,7 @@ EventToXI(InternalEvent *ev, xEvent **xi, int *count)
int
EventToXI2(InternalEvent *ev, xEvent **xi)
{
- switch (ev->u.any.type)
+ switch (ev->any.type)
{
case ET_Motion:
case ET_ButtonPress:
@@ -172,7 +172,7 @@ EventToXI2(InternalEvent *ev, xEvent **xi)
}
- ErrorF("[dix] EventToXI2: Not implemented for %d \n", ev->u.any.type);
+ ErrorF("[dix] EventToXI2: Not implemented for %d \n", ev->any.type);
return BadImplementation;
}
@@ -472,7 +472,7 @@ int
GetCoreType(InternalEvent *event)
{
int coretype = 0;
- switch(event->u.any.type)
+ switch(event->any.type)
{
case ET_Motion: coretype = MotionNotify; break;
case ET_ButtonPress: coretype = ButtonPress; break;
@@ -491,7 +491,7 @@ int
GetXIType(InternalEvent *event)
{
int xitype = 0;
- switch(event->u.any.type)
+ switch(event->any.type)
{
case ET_Motion: xitype = DeviceMotionNotify; break;
case ET_ButtonPress: xitype = DeviceButtonPress; break;
@@ -513,7 +513,7 @@ GetXI2Type(InternalEvent *event)
{
int xi2type = 0;
- switch(event->u.any.type)
+ switch(event->any.type)
{
case ET_Motion: xi2type = XI_Motion; break;
case ET_ButtonPress: xi2type = XI_ButtonPress; break;