mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-04-14 10:54:17 +00:00
Reset the fd to -1 after PreInit
We open and remove the device immediately, but the fd was left on the old value. This makes debugging harder, since the fd looks correct when it isn't. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -580,6 +580,7 @@ static int xf86libinput_pre_init(InputDriverPtr drv,
|
||||
libinput_device_ref(device);
|
||||
libinput_path_remove_device(device);
|
||||
|
||||
pInfo->fd = -1;
|
||||
pInfo->private = driver_data;
|
||||
driver_data->path = path;
|
||||
driver_data->device = device;
|
||||
|
||||
Reference in New Issue
Block a user