mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-04-14 10:54:17 +00:00
Don't unref the device until we're done with it in DEVICE_INIT
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -632,13 +632,13 @@ xf86libinput_init(DeviceIntPtr dev)
|
||||
if (libinput_device_has_capability(device, LIBINPUT_DEVICE_CAP_TOUCH))
|
||||
xf86libinput_init_touch(pInfo);
|
||||
|
||||
LibinputInitProperty(dev);
|
||||
XIRegisterPropertyHandler(dev, LibinputSetProperty, NULL, NULL);
|
||||
|
||||
/* unref the device now, because we'll get a new ref during
|
||||
DEVICE_ON */
|
||||
libinput_device_unref(device);
|
||||
|
||||
LibinputInitProperty(dev);
|
||||
XIRegisterPropertyHandler(dev, LibinputSetProperty, NULL, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user