From a90052ba8697e217b0dc68057d7b9202ae8797db Mon Sep 17 00:00:00 2001 From: David Ge Date: Thu, 19 Aug 2010 00:33:57 -0500 Subject: 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- xkb/xkbActions.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xkb') 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; -- cgit v1.2.3