Xi: remove broken SDeviceEnterNotifyEvent, replace with ...Leave...
The event format is the same for both (bar the type), so one is enough.
This commit is contained in:
parent
97b9374a8a
commit
f789408f7d
12
Xi/extinit.c
12
Xi/extinit.c
|
@ -610,16 +610,6 @@ SDevicePropertyNotifyEvent (devicePropertyNotify *from, devicePropertyNotify *to
|
||||||
swapl(&to->atom, n);
|
swapl(&to->atom, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
SDeviceEnterNotifyEvent (deviceEnterNotify *from, deviceEnterNotify *to)
|
|
||||||
{
|
|
||||||
char n;
|
|
||||||
|
|
||||||
*to = *from;
|
|
||||||
swaps(&to->sequenceNumber,n);
|
|
||||||
swapl(&to->time, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SDeviceLeaveNotifyEvent (deviceLeaveNotify *from, deviceLeaveNotify *to)
|
SDeviceLeaveNotifyEvent (deviceLeaveNotify *from, deviceLeaveNotify *to)
|
||||||
{
|
{
|
||||||
|
@ -1102,7 +1092,7 @@ SEventIDispatch(xEvent * from, xEvent * to)
|
||||||
else if (type == DevicePropertyNotify)
|
else if (type == DevicePropertyNotify)
|
||||||
DO_SWAP(SDevicePropertyNotifyEvent, devicePropertyNotify);
|
DO_SWAP(SDevicePropertyNotifyEvent, devicePropertyNotify);
|
||||||
else if (type == DeviceEnterNotify)
|
else if (type == DeviceEnterNotify)
|
||||||
DO_SWAP(SDeviceEnterNotifyEvent, deviceEnterNotify);
|
DO_SWAP(SDeviceLeaveNotifyEvent, deviceEnterNotify);
|
||||||
else if (type == DeviceLeaveNotify)
|
else if (type == DeviceLeaveNotify)
|
||||||
DO_SWAP(SDeviceLeaveNotifyEvent, deviceLeaveNotify);
|
DO_SWAP(SDeviceLeaveNotifyEvent, deviceLeaveNotify);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue