summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorMagnus Vigerlöf <Magnus.Vigerlof@ipbo.se>2008-04-08 14:42:00 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-08 14:43:22 +0930
commit5ffbcfec3d37d3b627a78acfa00dbafc5948df82 (patch)
tree0405aa31a2aaad0002ec0444e6106cbf67d275d3 /mi
parent32e4a88ae613c7200d84d5621344b418b656346b (diff)
dix: Ensure Proximity events don't kill the server.
Add Prox events to the if-clauses with the other events that are usually sent from the input devices. Ensure that the event deliverers won't try to deliver events of type '0' (some extended events doesn't have an equivalent core-type) Small modification by Peter Hutterer. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Diffstat (limited to 'mi')
-rw-r--r--mi/mieq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index a15b24f29..2759d165a 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -239,7 +239,8 @@ ChangeDeviceID(DeviceIntPtr dev, xEvent* event)
if (type == DeviceKeyPress || type == DeviceKeyRelease ||
type == DeviceButtonPress || type == DeviceButtonRelease ||
- type == DeviceMotionNotify)
+ type == DeviceMotionNotify || type == ProximityIn ||
+ type == ProximityOut)
((deviceKeyButtonPointer*)event)->deviceid = dev->id;
else if (type == DeviceValuator)
((deviceValuator*)event)->deviceid = dev->id;