SUMMARY When Plasma is set to "Activate and raise" windows instead of "Activate, raise and pass click", Spectacle's "Rectangular Region" capture overlay requires an initial click before a region can be selected. STEPS TO REPRODUCE 1. In System Settings > Window Management > Window Behavior > Window Actions, set Left click to "Activate and raise" 2. Open Spectacle, capture rectangular region 3. Try to draw rectangle OBSERVED RESULT The overlay needs an initial click before being able to interact with it EXPECTED RESULT The overlay should immediately have focus so it can be interacted with SOFTWARE/OS VERSIONS Operating System: NixOS 24.05 KDE Plasma Version: 6.0.0 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.6.18 (64-bit) Graphics Platform: Wayland Processors: 24 × 13th Gen Intel® Core™ i7-13700F Memory: 62.7 GiB of RAM Graphics Processor: AMD Radeon RX 6800 XT ADDITIONAL INFORMATION
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/362
Git commit d3973de254fe7b0f89c9f320836832fa4f0dd7fc by Noah Davis. Committed on 05/05/2024 at 20:32. Pushed by ndavis into branch 'master'. Raise and activate capture windows when shown This code is in QML instead of C++ because you can't get the global mouse pos from QCursor on wayland. We need to get the mouse pos within the window and QML was the easiest place to get it. M +12 -0 src/Gui/ImageCaptureOverlay.qml M +12 -0 src/Gui/VideoCaptureOverlay.qml https://invent.kde.org/graphics/spectacle/-/commit/d3973de254fe7b0f89c9f320836832fa4f0dd7fc
Git commit 3e1bd55dfac7defe9870341dfdc17b52b6ae9fd9 by Noah Davis. Committed on 05/05/2024 at 21:40. Pushed by ndavis into branch 'release/24.05'. Raise and activate capture windows when shown This code is in QML instead of C++ because you can't get the global mouse pos from QCursor on wayland. We need to get the mouse pos within the window and QML was the easiest place to get it. (cherry picked from commit d3973de254fe7b0f89c9f320836832fa4f0dd7fc) M +12 -0 src/Gui/ImageCaptureOverlay.qml M +12 -0 src/Gui/VideoCaptureOverlay.qml https://invent.kde.org/graphics/spectacle/-/commit/3e1bd55dfac7defe9870341dfdc17b52b6ae9fd9