From c035f3d0f58698d0f1dbeb1be7ad00f0787d3292 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 20 Jan 2009 09:44:49 +1100 Subject: 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 --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3