SUMMARY There is no "On lick" checkbox beside "Delay" spinbox when Spectacle runs on Wayland session. STEPS TO REPRODUCE 1. open Spectacle on Wayland session 2. 3. EXPECTED RESULT "On click" feature available on Wayland session SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 5.21 beta KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2
Confirmed on 22.08.2 on Fedora 37.
The reason why is that PlatformKwinWayland2 (a platform abstraction class that Spectacle uses) currently doesn't support "On Click". I'm not sure why "On Click" isn't supported. Maybe a KWin dev would know since KWin is responsible for capturing the screen?
We should just hide it on Wayland until it works, or can work.
(In reply to Nate Graham from comment #3) > We should just hide it on Wayland until it works, or can work. In the new UI, it is disabled when the environment doesn't support both on click and immediate modes. Is that good enough?
It doesn't seem to be working, then. On Wayland, I see the checkbox, and it's enabled, but it doesn't do anything.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/181
This would need to be implemented inside KWin
Actually it is already in KWin from what I am seeing, just need to hook it up
Although not fully https://invent.kde.org/plasma/kwin/-/blob/master/src/effects/screenshot/org.kde.KWin.ScreenShot2.xml#L235
Git commit 3daf87bed4d5ee9a04fca581ebbe0c05e98aacbb by David Redondo. Committed on 17/01/2023 at 10:33. Pushed by ngraham into branch 'master'. Fix on click checkbox enablement The parentheses are needed otherwise the comparison is done first. M +1 -1 src/Gui/CaptureSettingsColumn.qml https://invent.kde.org/graphics/spectacle/commit/3daf87bed4d5ee9a04fca581ebbe0c05e98aacbb