summaryrefslogtreecommitdiff
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-27 09:41:19 +0200
commit34b11fcd90258a70c02a04a13598b4a4af2c2974 (patch)
tree013ef2eea5fb696273dbdfe109fa3e380f31cf97
parent0062d94cafcea5a2fea6224904188d1435c1983f (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> (cherry picked from commit a90052ba8697e217b0dc68057d7b9202ae8797db)
-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;