summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDavid Ge <davidqge@gmail.com>2010-08-19 00:33:57 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2010-09-01 14:43:34 +1000
commita90052ba8697e217b0dc68057d7b9202ae8797db (patch)
tree7c8efd36c2b5b5065c814b29b1459ef6e43dcafc /xkb
parentff109bf84401a451380eb7f3f94a6e0aa2776e3e (diff)
xkb: Fix RedirectKey didn't send any event.
Xorg.log shows error: Valuators reported for non-valuator device. This is caused by uninitialized valuators.mask in _XkbFilterRedirectKey(), which trigger the error in UpdateDeviceState(). Signed-off-by: David Ge <davidqge@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbActions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index 8c75301b0..c0204441f 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -806,6 +806,7 @@ ProcessInputProc backupproc;
/* never actually used uninitialised, but gcc isn't smart enough
* to work that out. */
memset(&old, 0, sizeof(old));
+ memset(&ev, 0, sizeof(ev));
if ((filter->keycode!=0)&&(filter->keycode!=keycode))
return 1;