xkb: Fix repeat behaviour of redirect and message actions
authorAndreas Wettstein <wettstein509@solnet.ch>
Tue, 29 Jan 2013 20:49:20 +0000 (21:49 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 8 Feb 2013 03:54:09 +0000 (13:54 +1000)
commitb33fcb149710a28fd8767b2307a97bf367de695e
tree04ae3f0c6a740eb4769b0c23e061c18e42b7f642
parent8571c648a79444bcee9a0fe6e395129116372f49
xkb: Fix repeat behaviour of redirect and message actions

The redirect and the message action filter functions implicitly assumed that
when they receive an event for the same keycode they were activated for, that
this is the a release of the key that activated the filter.  This is not true
if the key autorepeats.  Due to the incorrect assumption, the effective key
repeat rate was effectively halved.

Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xkb/xkbActions.c