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

Peter Hutterer peter.hutterer at who-t.net
Thu Aug 19 16:19:11 PDT 2010


On Thu, Aug 19, 2010 at 12:33:57AM -0500, David Ge wrote:
> 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

thanks, merged.
 
Cheers,
  Peter


More information about the xorg-devel mailing list