Bug 500545

Summary: Spectacle does not show a "closed hand" cursor when a Rectangle Region is being dragged
Product: [Applications] Spectacle Reporter: Eamonn Rea <eamonnrea>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: minor CC: CerebrosuS, kde, nate, quarro, row.e1
Priority: NOR Keywords: junior-jobs
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eamonn Rea 2025-02-21 19:11:41 UTC
SUMMARY
Spectacle shows a hand cursor when over a draggable Rectangle Region. As a minor UI tweak, it could change to show the "closed hand" cursor when said region is being dragged.

I am not sure if this is documented in or goes against any KDE Human Interface Guidelines, it was just behaviour I observed from other applications and noticed that Spectacle does not do this.

STEPS TO REPRODUCE
1. Create a Rectangle Region when taking a screenshot/screencast.
2. Drag this region.
3. The cursor does not change when the region is being dragged.

OBSERVED RESULT
Spectacle shows an "open hand" cursor when a Rectangle Region is being dragged.

EXPECTED RESULT
Spectacle could show a "closed hand" cursor while a Rectangle Region is being dragged.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Greeniac 2025-02-22 04:05:05 UTC
Can reproduce.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7600K CPU @ 3.80GHz
Memory: 23.4 GiB of RAM
Graphics Processor: AMD Radeon Pro 580X
Manufacturer: Apple Inc.
Product Name: iMac18,3
System Version: 1.0
Comment 2 Noah Davis 2025-02-23 02:14:15 UTC
It's actually supposed to do that already and did for a while, but it seems that something about dragging is a bit broken on Wayland.
Comment 3 Nate Graham 2025-02-24 16:08:40 UTC
Can reproduce this one with today's git master.
Comment 4 Nate Graham 2025-10-30 21:28:36 UTC
The problem is because SelectionEditorPrivate::setMouseCursor() sets the cursor shape to OpenHand via C++, but doesn't conditionally set it to ClosedHand.

On the QML side in CaptureOverlay.qml, both are handled properly, but overridden by what the C++ code does.

One should be removed, or else the other. Right now they're interfering with one another.
Comment 5 Christian Krippendorf 2025-10-31 14:54:44 UTC
Hello everyone,

I cannot reproduce this bug on my system, current OpenSuse Tumbleweed.

KDE Plasma: 6.5.0
KDE Framework: 6.19.0
Graphics: Wayland

Maybe this bug has been solved already and the report should be closed.

Greetings
Comment 6 row.e1 2025-11-10 19:54:40 UTC
I cannot reproduce this bug on my system, Fedora 43.
Comment 7 row.e1 2025-11-10 19:55:09 UTC
I cannot reproduce this bug on my system, Fedora 43.
Comment 8 Nate Graham 2025-11-10 21:42:32 UTC
What version of Qt are you folks who can't reproduce the bug using?
Comment 9 row.e1 2025-11-11 08:42:50 UTC
QMake version 3.1
Using Qt version 6.10.0 in /usr/lib64