mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 01:24:04 +00:00
Don't try to enable a NULL device
If there is no other libinput device in our list (and next is thus NULL), skip the xf86AddEnabledDevice() call. Fixes #60
This commit is contained in:
@@ -1505,7 +1505,8 @@ swap_registered_device(InputInfoPtr pInfo)
|
||||
|
||||
input_lock();
|
||||
xf86RemoveEnabledDevice(pInfo);
|
||||
xf86AddEnabledDevice(next);
|
||||
if (next)
|
||||
xf86AddEnabledDevice(next);
|
||||
driver_context.registered_InputInfoPtr = next;
|
||||
input_unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user