On Thu, Jan 14, 2010 at 10:32 PM, Peter Hutterer
<peter.hutte...@who-t.net>wrote:

> On Thu, Jan 14, 2010 at 06:36:52PM -0600, Chris Bagwell wrote:
> > Touch screens and Touch Pads are sharing same type.  Make their
> > Mode defaults match normal operating behavior which means
> > change Bamboo P&T default to relative.  Simplify error case and rely
> > of default values from initialization phase.
> >
> > Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com>
> > ---
> >  man/wacom.man           |    3 ++-
> >  src/wcmValidateDevice.c |   23 ++++++++++++++---------
> >  2 files changed, 16 insertions(+), 10 deletions(-)
> >
> > diff --git a/man/wacom.man b/man/wacom.man
> > index 4b893ec..af315b2 100644
> > --- a/man/wacom.man
> > +++ b/man/wacom.man
> > @@ -99,7 +99,8 @@ sets the mode of the device.  The default value for
> stylus
> > and
> >  eraser is Absolute; cursor is Relative; pad mode is decided
> >  according to its core option due to its nature of not moving
> >  system cursor: Relative if it is a core device; Absolute, otherwise;
> > -touch is always in absolute mode.
> > +touch defaults to Relative for tablets with touch pads and Absolute for
> > +touch screens.
> >  .TP 4
> >  .B Option \fI"TopX"\fP \fI"number"\fP
> >  X coordinate of the top corner of the active zone.  Default to 0.
> > diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
> > index e8f4c2b..07f3bcc 100644
> > --- a/src/wcmValidateDevice.c
> > +++ b/src/wcmValidateDevice.c
> > @@ -418,18 +418,23 @@ int wcmParseOptions(LocalDevicePtr local, unsigned
> > long* keys)
> >          priv->flags |= ABSOLUTE_FLAG;
> >      else if (s && (xf86NameCmp(s, "relative") == 0))
> >          priv->flags &= ~ABSOLUTE_FLAG;
> > -    else if (s)
> > +    else
> >      {
> > -        xf86Msg(X_ERROR, "%s: invalid Mode (should be absolute or "
> > -            "relative). Using default.\n", local->name);
> > -
> > -        /* stylus/eraser defaults to absolute mode
> > -         * cursor defaults to relative mode
> > +        if (s)
> > +            xf86Msg(X_ERROR, "%s: invalid Mode (should be absolute"
> > +                " or relative). Using default.\n", local->name);
> > +
> > +        /* If Mode not specified or is invalid then rely on
> > +         * Type specific defaults from initialization.
> > +         *
> > +         * If Mode default is hardware specific then handle here:
> > +         *
> > +         * touch Types are initialized to Absolute.
> > +         * Bamboo P&T touch pads need to change default to Relative.
> >           */
> > -        if (IsCursor(priv))
> > +        if (IsTouch(priv) &&
> > +            (common->tablet_id >= 0xd0) && (common->tablet_id <= 0xd3))
> >              priv->flags &= ~ABSOLUTE_FLAG;
> > -        else
> > -            priv->flags |= ABSOLUTE_FLAG;
> >      }
> >
> >      /* Pad is always in relative mode when it's a core device.
> > --
> > 1.6.5.2
>
> which commit is this supposed to go on? It doesn't seem to apply to any of
> the last 15 commits in my tree.
>
> Cheers,
>   Peter
>

Really?  Its a fresh clone of sourceforge git from two days ago.  My git log
shows last commit before mine as:

[my commit is most recent]
commit 10e8f8fc543822091b36168965783aa45b9b7d31
Author: ch...@cnpbagwell.com <ch...@cnpbagwell.com>
Date:   Thu Jan 14 13:32:52 2010 -0600

[your commit is second to recent]
commit edf28df08b557ea6b7edb6c721670745c9e59cb6
Author: Peter Hutterer <peter.hutte...@who-t.net>
Date:   Thu Dec 24 21:18:10 2009 +1000


I'm far from a git expert and could have done something wrong.  Let me
research and see how to proceed.

Chris
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to