Bug 483632 - Spectacle shortcut "Capture win under cursor" shows crosshair
Summary: Spectacle shortcut "Capture win under cursor" shows crosshair
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.02.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-15 08:29 UTC by Rajinder Yadav
Modified: 2025-03-01 00:47 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajinder Yadav 2024-03-15 08:29:06 UTC
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
Comment 1 Titouan Camus 2024-03-16 08:03:06 UTC
I can reproduce. I am not sure it is a bug though, as it seems much more convenient to me this way.
Comment 2 Rajinder Yadav 2024-03-17 01:24:15 UTC
(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.
Comment 3 Rajinder Yadav 2024-03-17 01:32:29 UTC
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.
Comment 4 Noah Davis 2024-03-17 13:10:31 UTC
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).