Bug 510555

Summary: Moving cursor out of ImHex causes mouse cursor glitches
Product: [Plasma] kwin Reporter: Nicolas <nicolas>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: akselmo, nate
Priority: NOR    
Version First Reported In: 6.4.91   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.5.1
Sentry Crash Report:
Attachments: Grapgical glitch at cursor

Description Nicolas 2025-10-13 07:56:17 UTC
SUMMARY
When using ImHex (v1.37.4) and moving the cursor out of the window, when the cursor is outside, graphical glitches appear on the mouse cursor


STEPS TO REPRODUCE
1. Move mouse into client area of ImHex
2. Move mouse to the left border to see the resize cursor
3. 

OBSERVED RESULT
Graphical glitch appears on the left side of the cursor 

EXPECTED RESULT
No glitches.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.91
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.16.8-arch3-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor 1: Mesa Intel® UHD Graphics 630
Graphics Processor 2: Mesa Intel® UHD Graphics 630
Manufacturer: LENOVO
Product Name: 20QVCTO1WW
System Version: ThinkPad X1 Extreme 2nd

ADDITIONAL INFORMATION
Comment 1 Nicolas 2025-10-13 08:03:32 UTC
The display is setup on a 3840x2160  resolution with 200% scaling
Comment 2 Akseli Lahtinen 2025-10-13 09:24:42 UTC
Can't repro, I tried both flatpak and fedora package of ImHex. Only thing that happens is the mouse cursor changes it's look completely, but that seems to be the app taking over the cursor visuals.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.10-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 3 Nicolas 2025-10-13 17:45:49 UTC
Created attachment 185737 [details]
Grapgical glitch at cursor

I have an external display with 100% scaling, there I dont see an issue, but on the display with 200% scaling I can reproduce it 1 out of three times.

Recording the video with spectacle does not show the issue, therefore I attached a photo taken from the display
Comment 4 Bug Janitor Service 2025-10-17 10:05:15 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8264
Comment 5 Zamundaaa 2025-10-17 12:06:57 UTC
Git commit 705ca2b3e27fbedf81ee308f9b7cf0f414ced76b by Xaver Hugl.
Committed on 17/10/2025 at 11:12.
Pushed by zamundaaa into branch 'master'.

scene/scene: more properly disable damage tracking for ItemTreeView

Seems like just using the aligned rect can still have issues sometimes; the
infiniteRegion() should be safer.

M  +2    -3    src/scene/scene.cpp

https://invent.kde.org/plasma/kwin/-/commit/705ca2b3e27fbedf81ee308f9b7cf0f414ced76b