Bug 415927

Summary: Impossible to pick a screen color on Wayland
Product: [Applications] kcolorchooser Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, bernie, computerworm, dashonwwIII, hugo.pl, justin.zobel, nate, nortexoid, norwegian_pancakes, p.r.worrall, postix, rdieter, thebluequasar, zeskotron
Priority: HI Keywords: wayland
Version: 19.12   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-81538
See Also: https://bugs.kde.org/show_bug.cgi?id=455545
Latest Commit: Version Fixed In:

Description Patrick Silva 2020-01-06 13:09:31 UTC
STEPS TO REPRODUCE
1. open kcolorchooser on Wayland session
2. try to pick a screen color
3. 

OBSERVED RESULT
it's impossible to pick a screen color on Wayland

EXPECTED RESULT
we can pick a screen color on Wayland

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0
Comment 1 Christoph Feck 2020-01-20 12:35:45 UTC
Not sure if this can be addressed in QColorDialog. In Wayland, it is explicitely forbidden to read the screen contents. KWin offers an infrastructure for screenshot applications. I am not sure if the protocols used there use a standard that Qt could follow.

I suggest to report this to Qt developers (as a bug for QColorDialog).
Comment 2 Patrick Silva 2020-01-20 15:47:48 UTC
done
https://bugreports.qt.io/browse/QTBUG-81538
Comment 3 Patrick Silva 2020-04-06 11:27:38 UTC
*** Bug 419705 has been marked as a duplicate of this bug. ***
Comment 4 Bernie Innocenti 2022-02-20 02:17:06 UTC
*** Bug 389935 has been marked as a duplicate of this bug. ***
Comment 5 Paul Worrall 2022-03-25 09:39:35 UTC
*** Bug 450082 has been marked as a duplicate of this bug. ***
Comment 6 Patrick Silva 2022-05-15 17:28:13 UTC
*** Bug 453803 has been marked as a duplicate of this bug. ***
Comment 7 Patrick Silva 2022-06-16 21:00:54 UTC
*** Bug 455414 has been marked as a duplicate of this bug. ***
Comment 8 Paul Worrall 2022-06-21 12:52:19 UTC
The Colour Picker desktop widget works fine on Wayland, so are we sure it's valid to blame this on upstream?
Comment 9 Paul Worrall 2022-06-21 12:53:06 UTC
*** Bug 455580 has been marked as a duplicate of this bug. ***
Comment 10 Antonio Rojas 2022-09-07 09:50:32 UTC
*** Bug 458832 has been marked as a duplicate of this bug. ***
Comment 11 Zesko 2022-09-08 08:00:10 UTC
But another color picker app "kontrast" works fine in KDE Wayland. 
https://github.com/KDE/kontrast

Can you add some part of "kontrast" functions into Kcolorchooser?
Comment 12 Antonio Rojas 2022-09-08 08:49:17 UTC
Fixed now in the KDE Qt patch collection.