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
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).
done https://bugreports.qt.io/browse/QTBUG-81538
*** Bug 419705 has been marked as a duplicate of this bug. ***
*** Bug 389935 has been marked as a duplicate of this bug. ***
*** Bug 450082 has been marked as a duplicate of this bug. ***
*** Bug 453803 has been marked as a duplicate of this bug. ***
*** Bug 455414 has been marked as a duplicate of this bug. ***
The Colour Picker desktop widget works fine on Wayland, so are we sure it's valid to blame this on upstream?
*** Bug 455580 has been marked as a duplicate of this bug. ***
*** Bug 458832 has been marked as a duplicate of this bug. ***
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?
Fixed now in the KDE Qt patch collection.