input: bump to ints for deviceids - XI2 requires 16-bit deviceids.
Note: ABI break, but ABI_XINPUT_VERSION has NOT been bumped. Recompile input
drivers.
Revert "Xi: return BadImplementation for deviceids 256 and above"
This reverts commit 2b459f44f3.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -1050,11 +1050,11 @@ dixLookupDevice(DeviceIntPtr *pDev, int id, ClientPtr client, Mask access_mode)
|
||||
*pDev = NULL;
|
||||
|
||||
for (dev=inputInfo.devices; dev; dev=dev->next) {
|
||||
if (dev->id == (CARD8)id)
|
||||
if (dev->id == id)
|
||||
goto found;
|
||||
}
|
||||
for (dev=inputInfo.off_devices; dev; dev=dev->next) {
|
||||
if (dev->id == (CARD8)id)
|
||||
if (dev->id == id)
|
||||
goto found;
|
||||
}
|
||||
return BadDevice;
|
||||
|
||||
Reference in New Issue
Block a user