From 70bd8261223366dae9dfdbb999691328d85f093c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 24 Jul 2008 17:38:16 +0930 Subject: [PATCH] xkb: use PickPointer/PickKeyboard in _XkbLookupAnyDevice. --- xkb/xkbUtils.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c index 0727ad83a..0ed7e689a 100644 --- a/xkb/xkbUtils.c +++ b/xkb/xkbUtils.c @@ -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: