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:
Jérôme Duval 2004-10-26 09:33:45 +00:00
parent 16aff24b99
commit c393770444
2 changed files with 2 additions and 2 deletions

View File

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

View File

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