xkb: fix turbo-repeat of RedirectKey-ed keysyms

RedirectKey() action had been broken by commit 2e6190.
A dropped check caused over-intense autorepeat of keysyms enriched
with the action.

Previous to this commit, the check wrapped the entire switch() block,
which was dropped with the move to a separate function.

Restore the checking.

Signed-off-by: Mihail Konev <k.mvc@ya.ru>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Mihail Konev 2016-09-14 11:47:15 +01:00 committed by Peter Hutterer
parent fc1c358b95
commit 5794bdd528
1 changed files with 2 additions and 1 deletions

View File

@ -1337,7 +1337,8 @@ XkbHandleActions(DeviceIntPtr dev, DeviceIntPtr kbd, DeviceEvent *event)
}
sendEvent = _XkbApplyFilters(xkbi, key, &act);
XkbActionGetFilter(dev, event, key, &act, &sendEvent);
if (sendEvent)
XkbActionGetFilter(dev, event, key, &act, &sendEvent);
}
else {
if (!keyEvent)