mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-21 20:02:22 +01:00
xkb: use PickPointer/PickKeyboard in _XkbLookupAnyDevice.
This commit is contained in:
parent
2d4dede109
commit
a5fa772373
1 changed files with 2 additions and 8 deletions
|
|
@ -56,16 +56,10 @@ _XkbLookupAnyDevice(DeviceIntPtr *pDev, int id, ClientPtr client,
|
|||
int rc = XkbKeyboardErrorCode;
|
||||
|
||||
if (id == XkbUseCoreKbd) {
|
||||
if (inputInfo.keyboard)
|
||||
id = inputInfo.keyboard->id;
|
||||
else
|
||||
goto out;
|
||||
id = PickKeyboard(client)->id;
|
||||
}
|
||||
if (id == XkbUseCorePtr) {
|
||||
if (inputInfo.pointer)
|
||||
id = inputInfo.pointer->id;
|
||||
else
|
||||
goto out;
|
||||
id = PickPointer(client)->id;
|
||||
}
|
||||
rc = dixLookupDevice(pDev, id, client, access_mode);
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue