summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-09-25 07:55:17 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-09-26 07:26:59 -0400
commit3b114f2603fc2adeec7f5f8f20fe4870afb8dff1 (patch)
tree4701a07c0bee54dd0af7323a94c53f621ec706a7 /Xi
parent31a7994ac7365562ef1d00e0a7b25f967a961a4e (diff)
Input: Properly swap DevicePresenceNotify events.
Diffstat (limited to 'Xi')
-rw-r--r--Xi/extinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index a61746e69..73bae5e85 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -929,6 +929,8 @@ SEventIDispatch(xEvent * from, xEvent * to)
DO_SWAP(SDeviceMappingNotifyEvent, deviceMappingNotify);
else if (type == ChangeDeviceNotify)
DO_SWAP(SChangeDeviceNotifyEvent, changeDeviceNotify);
+ else if (type == DevicePresenceNotify)
+ DO_SWAP(SDevicePresenceNotifyEvent, devicePresenceNotify);
else {
FatalError("XInputExtension: Impossible event!\n");
}
@@ -974,6 +976,7 @@ XInputExtensionInit(void)
EventSwapVector[DeviceButtonStateNotify] = SEventIDispatch;
EventSwapVector[DeviceMappingNotify] = SEventIDispatch;
EventSwapVector[ChangeDeviceNotify] = SEventIDispatch;
+ EventSwapVector[DevicePresenceNotify] = SEventIDispatch;
} else {
FatalError("IExtensionInit: AddExtensions failed\n");
}