fixed devices showed as stopped when they were running
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9513 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1426,7 +1426,7 @@ InputServer::StartStopDevices(const char *name, input_device_type type, bool doS
|
|||||||
if (!item)
|
if (!item)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((name && strcmp(name, item->mDev.name) == 0) || item->mDev.type == type) {
|
if ((name && strcmp(name, item->mDev.name) == 0) || (!name && item->mDev.type == type)) {
|
||||||
if (!item->mIsd)
|
if (!item->mIsd)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ BInputServerDevice::RegisterDevices(input_device_ref **devices)
|
|||||||
if (!found) {
|
if (!found) {
|
||||||
PRINT(("RegisterDevices not found %s\n", device->name));
|
PRINT(("RegisterDevices not found %s\n", device->name));
|
||||||
InputServer::gInputDeviceList.AddItem(new InputDeviceListItem(this, *device) );
|
InputServer::gInputDeviceList.AddItem(new InputDeviceListItem(this, *device) );
|
||||||
Start(device->name, device->cookie);
|
InputServer::StartStopDevices(this, true);
|
||||||
} else {
|
} else {
|
||||||
PRINT(("RegisterDevices found %s\n", device->name));
|
PRINT(("RegisterDevices found %s\n", device->name));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user