summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-08-25 14:52:35 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-18 13:32:57 +0930
commitf789408f7dbfe57a0111e185ac83d1c70f262ba8 (patch)
tree9d3312284ff5024b04096e02593ec82c64d11a5f /Xi
parent97b9374a8af5a4cc52f9074feb4ce40cf0b90796 (diff)
Xi: remove broken SDeviceEnterNotifyEvent, replace with ...Leave...
The event format is the same for both (bar the type), so one is enough.
Diffstat (limited to 'Xi')
-rw-r--r--Xi/extinit.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index d8714ba7c..595e3582f 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -611,16 +611,6 @@ SDevicePropertyNotifyEvent (devicePropertyNotify *from, devicePropertyNotify *to
}
static void
-SDeviceEnterNotifyEvent (deviceEnterNotify *from, deviceEnterNotify *to)
-{
- char n;
-
- *to = *from;
- swaps(&to->sequenceNumber,n);
- swapl(&to->time, n);
-}
-
-static void
SDeviceLeaveNotifyEvent (deviceLeaveNotify *from, deviceLeaveNotify *to)
{
char n;
@@ -1102,7 +1092,7 @@ SEventIDispatch(xEvent * from, xEvent * to)
else if (type == DevicePropertyNotify)
DO_SWAP(SDevicePropertyNotifyEvent, devicePropertyNotify);
else if (type == DeviceEnterNotify)
- DO_SWAP(SDeviceEnterNotifyEvent, deviceEnterNotify);
+ DO_SWAP(SDeviceLeaveNotifyEvent, deviceEnterNotify);
else if (type == DeviceLeaveNotify)
DO_SWAP(SDeviceLeaveNotifyEvent, deviceLeaveNotify);
else {