mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-01 21:33:18 +00:00
Remove the evil xf86ActivateDevice declaration, don't need it anymore.
Fix the crash on device unplug. NOTE: We still don't properly get rid of ourselves.
This commit is contained in:
@@ -72,12 +72,7 @@
|
||||
|
||||
#include <xf86_OSproc.h>
|
||||
|
||||
/*
|
||||
* FIXME: This should most definitely not be here.
|
||||
* But I need it, even if it _is_ private.
|
||||
*/
|
||||
|
||||
void xf86ActivateDevice(InputInfoPtr pInfo);
|
||||
static int EvdevProc(DeviceIntPtr device, int what);
|
||||
|
||||
/**
|
||||
* Obtain various information using ioctls on the given socket. This
|
||||
@@ -123,7 +118,7 @@ EvdevReadInput(InputInfoPtr pInfo)
|
||||
strerror(errno), errno, len, sizeof (ev));
|
||||
if (len < 0) {
|
||||
evdevDevicePtr pEvdev = pInfo->private;
|
||||
pEvdev->callback(pEvdev->pInfo->dev, DEVICE_OFF);
|
||||
EvdevProc(pEvdev->pInfo->dev, DEVICE_OFF);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user