On Thu, Aug 19, 2010 at 03:57:49PM +1000, Peter Hutterer wrote:
> I don't actually know what this is really supposed to do in the end, the
> driver does the same thing irrespective of whether leftof or rightof is
> specified.
> 
> Signed-off-by: Peter Hutterer <[email protected]>
> ---
>  tools/xsetwacom.c |   14 ++++++++++++--
>  1 files changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
> index 839be3a..6e5174f 100644
> --- a/tools/xsetwacom.c
> +++ b/tools/xsetwacom.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright 2009 Red Hat, Inc.
> + * Copyright 2009 - 2010 Red Hat, Inc.
>   *
>   * This program is free software; you can redistribute it and/or
>   * modify it under the terms of the GNU General Public License
> @@ -1889,6 +1889,14 @@ static void set_twinview(Display *dpy, XDevice *dev, 
> param_t* param, int argc, c
>               twinview = TV_LEFT_RIGHT;
>       else if (strcasecmp(argv[0], "vertical") == 0)
>               twinview = TV_ABOVE_BELOW;
> +     else if (strcasecmp(argv[0], "belowof") == 0)
> +             twinview = TV_ABOVE_BELOW;
> +     else if (strcasecmp(argv[0], "aboveof") == 0)
> +             twinview = TV_BELOW_ABOVE;
> +     else if (strcasecmp(argv[0], "rightof") == 0)
> +             twinview = TV_LEFT_RIGHT;
> +     else if (strcasecmp(argv[0], "leftof") == 0)
> +             twinview = TV_RIGHT_LEFT;
>       else
>               goto error;
>  
> @@ -1918,7 +1926,9 @@ static void set_twinview(Display *dpy, XDevice *dev, 
> param_t* param, int argc, c
>       return;
>  
>  error:
> -     fprintf(stderr, "Usage: xsetwacom <device name> TwinView [none | 
> horizontal | vertical]\n");
> +     fprintf(stderr, "Usage: xsetwacom <device name> TwinView [<value>]\n");
> +     fprintf(stderr, "Values: none, horizontal, vertical, belowof,"
> +                     "aboveof, leftof, rightof\n");
>       return;
>  }
>  
> -- 
> 1.7.2.1

fwiw, I squashed in this hunk before pushing, I forgot that xsetwacom get
TwinView should still return something sane.

@@ -2159,6 +2169,8 @@ static void get_twinview(Display *dpy, XDevice *dev, 
param_t *param, int argc, c
                case TV_NONE: twinview = "none"; break;
                case TV_ABOVE_BELOW: twinview = "vertical"; break;
                case TV_LEFT_RIGHT: twinview = "horizontal"; break;
+               case TV_RIGHT_LEFT: twinview = "leftof"; break;
+               case TV_BELOW_ABOVE: twinview = "aboveof"; break;
                default:
                                    break;
        }
 
Cheers,
  Peter

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to