https://bugs.kde.org/show_bug.cgi?id=283130

Cyrille Berger Skott cberger at cberger.net
Tue Nov 8 17:35:18 UTC 2011


On Tuesday 08 November 2011, Boudewijn Rempt wrote:
> > This is, I think, the minimal change that's needed to see if
> >
> > 
> >
> > a) we don't wantonly switch from tablet to mouse anymore. This seems to
> > work for me b) still can switch between wacom devices. I only have one
> > pen here, so I cannot test that.
> 
> it works for eraser/stylus end, though.
> 
> > 
> > 
> >
> > diff --git a/libs/flake/KoToolManager.cpp b/libs/flake/KoToolManager.cpp
> > index b3a9120..b8110e5 100644
> > --- a/libs/flake/KoToolManager.cpp
> > +++ b/libs/flake/KoToolManager.cpp
> > @@ -655,7 +655,7 @@ void KoToolManager::Private::switchInputDevice(const
> > KoInputDevice &device)
> >
> >          tabletEventTimer.start(MSECS_TO_IGNORE_SWITCH_TO_MOUSE_AFTER_TAB
> >LET_EVENT_RECEIVED); }
> >      if (inputDevice == device) return;
> >
> > -    if (device.isMouse() && tabletEventTimer.isActive()) {
> > +    if (device.isMouse() && !inputDevice.isMouse()) { //
> > tabletEventTimer.isActive()) {
isn't equivalent to if(false) ?

-- 
Cyrille Berger Skott


More information about the kimageshop mailing list