xkb: use the correct device instead of an uninitialised "dev". #15614

X.Org Bug 15614 <http://bugs.freedesktop.org/show_bug.cgi?id=15614>

Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
This commit is contained in:
Egbert Eich 2008-04-22 13:30:03 +09:30 committed by Peter Hutterer
parent ba87c25321
commit 449723510a

View File

@ -1031,7 +1031,7 @@ _XkbFilterDeviceBtn( XkbSrvInfoPtr xkbi,
DeviceIntPtr dev;
int button;
if (dev == inputInfo.keyboard)
if (xkbi->device == inputInfo.keyboard)
return 0;
if (filter->keycode==0) { /* initial press */