xfree86 input: always open devices on NewInputDeviceRequest

This commit is contained in:
Daniel Stone 2006-10-15 21:48:01 +03:00 committed by Daniel Stone
parent acd8419948
commit 4ae7745a0d

View File

@ -222,15 +222,8 @@ xf86ActivateDevice(LocalDevicePtr local)
DeviceIntPtr dev;
if (local->flags & XI86_CONFIGURED) {
int open_on_init;
open_on_init = local->flags & (XI86_OPEN_ON_INIT | XI86_ALWAYS_CORE);
dev = AddInputDevice(local->device_control,
open_on_init);
#ifdef DEBUG
ErrorF("activated device %d: %s\n", dev->id, local->name);
#endif
dev = AddInputDevice(local->device_control, TRUE);
if (dev == NULL)
FatalError("Too many input devices");