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:
parent
16aff24b99
commit
c393770444
@ -1426,7 +1426,7 @@ InputServer::StartStopDevices(const char *name, input_device_type type, bool doS
|
||||
if (!item)
|
||||
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)
|
||||
return B_ERROR;
|
||||
|
||||
|
@ -169,7 +169,7 @@ BInputServerDevice::RegisterDevices(input_device_ref **devices)
|
||||
if (!found) {
|
||||
PRINT(("RegisterDevices not found %s\n", device->name));
|
||||
InputServer::gInputDeviceList.AddItem(new InputDeviceListItem(this, *device) );
|
||||
Start(device->name, device->cookie);
|
||||
InputServer::StartStopDevices(this, true);
|
||||
} else {
|
||||
PRINT(("RegisterDevices found %s\n", device->name));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user