Bug 500543 - While setting the size of a Rectangular Region to be captured, Spectacle shows the "hand" cursor (instead of the resize or cross cursor) when the capture region is smaller than a certain threshold
Summary: While setting the size of a Rectangular Region to be captured, Spectacle show...
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.12.2
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
: 500194 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-21 19:08 UTC by Eamonn Rea
Modified: 2025-03-14 03:36 UTC (History)
4 users (show)

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


Attachments
Region Screenshot Hand Cursor on Small Region (359.79 KB, image/jpeg)
2025-03-01 14:32 UTC, Eamonn Rea
Details
Region Screenshot Knob Display Issue (569.92 KB, image/jpeg)
2025-03-01 14:32 UTC, Eamonn Rea
Details
Hand cursor when drawing rectangular region with small dimensions (2.09 MB, video/mp4)
2025-03-14 03:36 UTC, John Kizer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eamonn Rea 2025-02-21 19:08:43 UTC
SUMMARY
When creating a Rectangle Region in Spectacle, resizing this (and sizing it initially) will show the wrong cursor type. It shows the "open hand" cursor, the same it would show if hovering over something that could be dragged. While it is true the region can be dragged, when resizing by pulling at the edges and corners, it would be more expected to show a resizing cursor. I believe Spectacle used to do this until fairly recently.

The nature of this bug is hard to get a screenshot of, since it occurs when attempting *to* take a screenshot, but hopefully the description and Steps to Reproduce suffice :-)

STEPS TO REPRODUCE
1. Create a Rectangle Region with Spectacle.
2. When sizing initially, it will show an open hand cursor instead of a resizing cursor 
3. When resizing after, it will show the same cursor type when again it would be more expected to show a resizing cursor.

OBSERVED RESULT
Spectacle shows a hand cursor when sizing/resizing rectangle regions for screenshots/screencasts.

EXPECTED RESULT
Spectacle should show a resize cursor when sizing/resizing rectangle regions for screenshots/screencasts, which from memory I think was previously the case.

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 Nate Graham 2025-02-24 15:29:12 UTC
I see resize cursors at the edges of the box in current git master; can't reproduce. I only see the open hand cursor in the center of the box, where it can in fact be clicked and dragged to move it around.
Comment 2 Eamonn Rea 2025-02-25 17:12:24 UTC
On further testing, this seems to only happen if the region is below a certain small size. As the region sizing is not accurate on my current setup I cannot give an exact size (Bug 483155, which at least on my machines is not fixed) but when they are small, resizing shows a hand cursor until the region is of a larger size.
Comment 3 Nate Graham 2025-02-26 17:44:59 UTC
How small are we talking about? Can you take a phone photo of the screen when it's happening?
Comment 4 Eamonn Rea 2025-02-27 23:06:01 UTC
So the sizing varies depending on monitor resolution, in that the "visual size" to reproduce the problem is the same regardless of display size, but of course on a higher resolution display that means there would physically be more pixels.

On a 1920x1080 display, so long as the region is less than approximately 50 pixels in height, the hand icon will always appear no matter the width. This is even true on a 3840x2160 display, where the hand icon will be used for the whole length of that display while sizing, so long as the region is less than - I suppose about 100 pixels?

This specific behaviour is new in Plasma 6.3.2, in Plasma 6.3.1 the hand icon would disappear after the region extended for about half of the display.

The hand icon goes away once the region extends into another display, until the region is about a fifth of the way into the display, and then the hand icon appears again.

I will try to get a picture to attach to the ticket.
Comment 5 Eamonn Rea 2025-03-01 14:31:18 UTC
In further testing, the cursor appears until the region is at such a size that the little "knobs" on the edges and corners of the region actually display properly - they display incorrectly if the region is at a small size, where they are offset by a noticeable amount in the opposite direction that they should display on. It is as if there is a thick box drawn around the region, and the "knobs" display as though they are attached to that.

I have taken pictures on my phone of both this phenomenon, and the main issue described in the ticket of the hand icon appearing. The images were taken on a 1920x1080 display.

Note that the region size in pixels should be ignored from the screenshot, as noted it is not accurate on Spectacle when you have a scaled display anywhere in the setup (Bug 483155).
Comment 6 Eamonn Rea 2025-03-01 14:32:11 UTC
Created attachment 179002 [details]
Region Screenshot Hand Cursor on Small Region
Comment 7 Eamonn Rea 2025-03-01 14:32:49 UTC
Created attachment 179003 [details]
Region Screenshot Knob Display Issue
Comment 8 Noah Davis 2025-03-03 16:25:22 UTC
(In reply to Eamonn Rea from comment #5)
> In further testing, the cursor appears until the region is at such a size
> that the little "knobs" on the edges and corners of the region actually
> display properly - they display incorrectly if the region is at a small
> size, where they are offset by a noticeable amount in the opposite direction
> that they should display on. It is as if there is a thick box drawn around
> the region, and the "knobs" display as though they are attached to that.

That was actually intentional behavior preserved from the pre-2023 version of spectacle. I think the intention was to make it easier to click the handles at small sizes. Not sure if it still makes sense.
Comment 9 John Kizer 2025-03-14 03:14:57 UTC
*** Bug 500194 has been marked as a duplicate of this bug. ***
Comment 10 John Kizer 2025-03-14 03:35:58 UTC
I can reproduce the cursor showing up as a hand while the Rectangular Region to be captured is small enough to trigger the behavior mentioned in comments 5 and 8 - attaching an extremely poorly-taken cell phone video, if that's helpful!
Comment 11 John Kizer 2025-03-14 03:36:57 UTC
Created attachment 179381 [details]
Hand cursor when drawing rectangular region with small dimensions