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:
Daniel Stone
2006-10-15 19:37:46 +03:00
committed by Daniel Stone
parent 77cbbc20b6
commit ec09e0d55d

View File

@@ -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;
}