xkb: the VCP can post device events, don't stop xkb filtering on it.
This commit is contained in:
parent
23686e5680
commit
3f801ba62a
|
@ -964,7 +964,7 @@ int button;
|
||||||
if (filter->keycode==0) { /* initial press */
|
if (filter->keycode==0) { /* initial press */
|
||||||
_XkbLookupButtonDevice(&dev, pAction->devbtn.device, serverClient,
|
_XkbLookupButtonDevice(&dev, pAction->devbtn.device, serverClient,
|
||||||
DixUnknownAccess, &button);
|
DixUnknownAccess, &button);
|
||||||
if (!dev || !dev->public.on || dev == inputInfo.pointer)
|
if (!dev || !dev->public.on)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
button= pAction->devbtn.button;
|
button= pAction->devbtn.button;
|
||||||
|
@ -1005,7 +1005,7 @@ int button;
|
||||||
filter->active= 0;
|
filter->active= 0;
|
||||||
_XkbLookupButtonDevice(&dev, filter->upAction.devbtn.device,
|
_XkbLookupButtonDevice(&dev, filter->upAction.devbtn.device,
|
||||||
serverClient, DixUnknownAccess, &button);
|
serverClient, DixUnknownAccess, &button);
|
||||||
if (!dev || !dev->public.on || dev == inputInfo.pointer)
|
if (!dev || !dev->public.on)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
button= filter->upAction.btn.button;
|
button= filter->upAction.btn.button;
|
||||||
|
|
Loading…
Reference in New Issue