[PATCH v2 xf85-input-evdev] Set the default resolution to 0

Peter Hutterer peter.hutterer at who-t.net
Thu Jan 5 18:17:36 PST 2012


On Tue, Jan 03, 2012 at 03:31:43PM -0800, Chase Douglas wrote:
> If we don't know the resolution, set it to 0. This is invalid, and tells
> the X client that we don't know the resolution, rather than reporting an
> incorrect value.
> 
> This value was originally from commit
> 6271494faa4c45f4fa10509f72e0515f2cef36c6, which is the initial commit
> from Adam Jackson adding absolute axis support.
> 
> Signed-off-by: Chase Douglas <chase.douglas at canonical.com>

   965338e..8c55e94  master -> master

Cheers,
  Peter

> ---
> Changes from v1:
> * Silly typo, forgot ending semicolon on changed lines
>  src/evdev.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/evdev.c b/src/evdev.c
> index 9f3a22a..82cdb00 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -1323,7 +1323,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
>  
>      for (axis = ABS_X; axis < ABS_MT_SLOT; axis++) {
>          int axnum = pEvdev->axis_map[axis];
> -        int resolution = 10000;
> +        int resolution = 0;
>  
>          if (axnum == -1)
>              continue;
> @@ -1345,7 +1345,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
>  #ifdef MULTITOUCH
>      for (axis = ABS_MT_TOUCH_MAJOR; axis <= ABS_MAX; axis++) {
>          int axnum = pEvdev->axis_map[axis];
> -        int resolution = 10000;
> +        int resolution = 0;
>          int j;
>          BOOL skip = FALSE;
>  
> -- 
> 1.7.7.3
> 


More information about the xorg-devel mailing list