[PATCH] xkb: Fix RedirectKey didn't send any event.

David Ge davidqge at gmail.com
Wed Aug 18 22:33:57 PDT 2010


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 at gmail.com>
---
 xkb/xkbActions.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index b0ab427..5b39dc9 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -790,7 +790,8 @@ 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;
 
-- 
1.7.0.4



More information about the xorg-devel mailing list