mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-26 18:54:30 +00:00
brain: call xf86DeleteInput when removing device
Call xf86DeleteInput from evdevRemoveDevice, so it also gets removed from xf86InputDevs in the DDX.
This commit is contained in:
committed by
Daniel Stone
parent
77cbbc20b6
commit
ec09e0d55d
@@ -472,6 +472,7 @@ evdevRemoveDevice (evdevDevicePtr pEvdev)
|
||||
for (device = &driver->devices; *device; device = &(*device)->next) {
|
||||
if (*device == pEvdev) {
|
||||
*device = pEvdev->next;
|
||||
xf86DeleteInput(pEvdev->pInfo, 0);
|
||||
pEvdev->next = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user