SUMMARY When using the shortcut to capture screen under cursor, a crosshair showup and an additional click is required. Before the window under the cursor was immediately capture and saved by Spectacle. STEPS TO REPRODUCE 1. Set shortcut for Spectacle "Capture win under cursor" 2. Place cursor over a window 3. Press shortcut OBSERVED RESULT Crosshair shows up. EXPECTED RESULT Capture image of window under cursor. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20240313 KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.7-1-default (64-bit) Graphics Platform: X11 Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor Memory: 62.7 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2 Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7A38 System Version: 8.0
I can reproduce. I am not sure it is a bug though, as it seems much more convenient to me this way.
(In reply to Titouan Camus from comment #1) > I can reproduce. I am not sure it is a bug though, as it seems much more > convenient to me this way. This is not how it use to work before, also now I have to do an additional mouse click and is not efficent. Before I just move the mouse cursor over a window and use my hotkey.
One additional thing I like to add. Imagine the window is changing quickly and you want to quickly capture the changes. With just the hotkey, I can press it quickly multiple times. The "new way" I would have to press the hotkey and mouse click multiple times to try to keep up with changes. This is really cumbersom and you would not be able to capture rapidly.
This is intended in order to make behavior between X11 and Wayland consistent. On Wayland, you can't just get the window that is under the mouse cursor. Instead, you have to request to the system to let the user pick a window and that's why you have to click on windows now. I realize this is not optimal for certain usecases. You may be able to achieve something similar to the old behavior by capturing the active window instead. Why can you capture the active window on Wayland without explicit input from the user, but not the window with the mouse cursor over it? ¯\_(ツ)_/¯ I don't know. I suppose you could argue that behavior on X11 shouldn't be limited by Wayland, but I think it's important to keep behavior consistent. This way users don't need to think differently depending on the graphics platform when they're using Spectacle on Plasma. Also, Wayland is still supposed to be the future (even if X11 ends up living on for the next 10 years despite KDE and GNOME's best efforts to move away).