[PATCH] dix: the default axis mode is Relative, not "0".

Fernando Carrijo fcarrijo at yahoo.com.br
Tue Jun 15 17:01:45 PDT 2010


Peter Hutterer <peter.hutterer at who-t.net> wrote:
> Yay for readability.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  dix/devices.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/dix/devices.c b/dix/devices.c
> index 91dd4fd..2226ff2 100644
> --- a/dix/devices.c
> +++ b/dix/devices.c
> @@ -1484,7 +1484,7 @@ InitPointerDeviceStruct(DevicePtr device, CARD8 *map, int numButtons, Atom* btn_
>  
>      return(InitButtonClassDeviceStruct(dev, numButtons, btn_labels, map) &&
>  	   InitValuatorClassDeviceStruct(dev, numAxes, axes_labels,
> -					 numMotionEvents, 0) &&
> +					 numMotionEvents, Relative) &&
>  	   InitPtrFeedbackClassDeviceStruct(dev, controlProc));
>  }
>  
> -- 
> 1.7.0.1

Reviewed-by: Fernando Carrijo <fcarrijo at yahoo.com.br>



More information about the xorg-devel mailing list