aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-01-20 09:44:49 +1100
committerPeter Hutterer <peter.hutterer@who-t.net>2009-01-20 09:45:40 +1100
commitc035f3d0f58698d0f1dbeb1be7ad00f0787d3292 (patch)
tree0cd9b16e8d7363f4df1f3403875f6375f012f82d
parentTest for pressure BEFORE using has_pressure. (diff)
downloadxf86-input-evdev-c035f3d0f58698d0f1dbeb1be7ad00f0787d3292.tar.gz
xf86-input-evdev-c035f3d0f58698d0f1dbeb1be7ad00f0787d3292.tar.bz2
xf86-input-evdev-c035f3d0f58698d0f1dbeb1be7ad00f0787d3292.zip
Register the property handler AFTER setting all the properties.
Otherwise, we add a new property based on a setting in pEvdev, which triggers the update handler to change the setting in pEvdev based on the property. Truly pointless. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 576fe62..a01b6a1 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1088,8 +1088,8 @@ EvdevInit(DeviceIntPtr device)
/* We drop the return value, the only time we ever want the handlers to
* unregister is when the device dies. In which case we don't have to
* unregister anyway */
- XIRegisterPropertyHandler(device, EvdevSetProperty, NULL, NULL);
EvdevInitProperty(device);
+ XIRegisterPropertyHandler(device, EvdevSetProperty, NULL, NULL);
EvdevMBEmuInitProperty(device);
EvdevWheelEmuInitProperty(device);
EvdevDragLockInitProperty(device);