Bug 419022 - Circle to quickly choose tool does not select tool, needs double click to stay open
Summary: Circle to quickly choose tool does not select tool, needs double click to sta...
Status: RESOLVED DUPLICATE of bug 407978
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.2.8
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-19 16:05 UTC by postix
Modified: 2020-04-03 15:54 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen recording (1.71 MB, video/mp4)
2020-03-19 16:05 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2020-03-19 16:05:13 UTC
Created attachment 126892 [details]
Screen recording

SUMMARY

I just bought a graphics tablet (Wacom Intuos) with a two button pen and tested Krita. Button "two" opens this circle to select a tool or color. 

Pressing button two, opens the circle. Releasing it, closes it.
While holding it down it stays open and the cursor can be moved to select a tool (in theory). But tipping the pen (simulating a click) on the tablet does nothing but close the circle.

However, there's the chance to let the circle stay open: By quickly double clicking the button two. 
If it stays open then (without holding down button two), a tool or  a color can actually be selected.
Unfortunately double clicking does not reliable make the circle stay opened. 

Please see the video.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Kernel Version: 5.5.8-1-MANJARO
Comment 1 postix 2020-03-19 16:40:25 UTC
Button "two" = Right Mouse button
Comment 2 Ahab Greybeard 2020-03-20 13:48:28 UTC
That button on your pen is the equivalent of a mouse right-click.
Does your mouse behave well when you use it to bring up the popup palette in this way?

If you go to Settings -> Configure Krita -> Tablet settings then press the large Open Tablet Tester buttonm you'll get the tablet tester window. Resize it to make it large and useful. Hover your pen over the grid area and press your button-2. You should get a continuous stream of records with B=2 (due to slight movements of your pen). If you quickly release button-2 and then press it again, you should get a single B=0 record before the repeated B=2 records begin again.
Comment 3 postix 2020-03-20 16:57:37 UTC
> Does your mouse behave well when you use it
> to bring up the popup palette in this way?

Yes, it was works absolutely flawless.


> Hover your pen over the grid area and press your button-2.
> You should get a continuous stream of records
> with B=2 (due to slight movements of your pen).
> If you quickly release button-2 and then press it again,
> you should get a single B=0 record before
> the repeated B=2 records begin again.

This seems to work as expected. There's a continuous stream when I press the Button 2 close to the surface. Further, here's the output, after I pressed the button only once:


Pen tip brought near
Stylus press X=589.78 Y=225.76 B=2 P=0.0%
Stylus move X=588.91 Y=226.33 B=2 P=0.0% (DRAW)
Stylus move X=587.96 Y=226.97 B=2 P=0.0% (DRAW)
Stylus move X=587.10 Y=227.68 B=2 P=0.0% (DRAW)
Stylus move X=586.31 Y=228.32 B=2 P=0.0% (DRAW)
Stylus move X=585.67 Y=228.53 B=2 P=0.0% (DRAW)
Stylus move X=585.04 Y=229.24 B=2 P=0.0% (DRAW)
Stylus move X=584.80 Y=229.24 B=2 P=0.0% (DRAW)
Stylus move X=584.17 Y=229.24 B=2 P=0.0% (DRAW)
Stylus move X=584.09 Y=229.24 B=2 P=0.0% (DRAW)
Stylus move X=584.01 Y=229.03 B=2 P=0.0% (DRAW)
Stylus move X=584.01 Y=228.32 B=2 P=0.0% (DRAW)
Stylus move X=584.17 Y=228.10 B=2 P=0.0% (DRAW)
Stylus move X=584.80 Y=227.11 B=2 P=0.0% (DRAW)
Stylus move X=585.59 Y=226.18 B=2 P=0.0% (DRAW)
Stylus move X=586.62 Y=225.05 B=2 P=0.0% (DRAW)
Stylus release X=586.62 Y=225.05 B=0 P=0.0%
Pen tip taken away
Comment 4 Ahab Greybeard 2020-03-20 17:20:25 UTC
Then this is a mystery. You'll need to wait for someone else to suggest other diagnostic tests :(
Comment 5 postix 2020-03-20 17:36:03 UTC
(In reply to Ahab Greybeard from comment #4)
> Then this is a mystery. You'll need to wait for someone else to suggest
> other diagnostic tests :(

If I press very very short, i.e. as quickly as I can, it works reliable with the pen. But if I press ~10-20 ms too long, the circle vanishes.

This may be a clue!

Also, this issue seems to be independed of the set sampling rate or suppression rate. There was no change when I changed on the values to either end.
Comment 6 Vladar 2020-04-03 15:38:18 UTC
This issue is present since 4.2 or so: https://bugs.kde.org/show_bug.cgi?id=407978

The workaround of enabling Config → Tablet settings → "Use mouse events ..." seems to be working still.
Comment 7 Halla Rempt 2020-04-03 15:54:59 UTC
Okay, if it's the same thing, I'll mark this as a duplicate.

*** This bug has been marked as a duplicate of bug 407978 ***