Bug 497701

Summary: regression from plasma 5: mouse cursor remains invisible when moved if other window has focus
Product: [Plasma] kwin Reporter: Andrew Kelley <andrew>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: john.kizer, kde, nate, p.r.worrall, ranzatsu
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Cursor not reappearing when moved, after typing occurs in another window

Description Andrew Kelley 2024-12-20 01:04:05 UTC
SUMMARY

When you type, the mouse cursor disappears. When you move the cursor, it is supposed to come back. It fails to do this if a window has focus other than the one the mouse cursor is on top of.

STEPS TO REPRODUCE and OBSERVED RESULT
1. Open two Konsole windows side by side, A and B (any application will work)
2. Place the mouse cursor over the center of Window A
3. Alt+Tab to Window B
4. Enter text into Window B
5. Observe the mouse cursor disappear
6. Move the mouse cursor, observing it to be incorrectly invisible until it exits Window A's region

EXPECTED RESULT

When the mouse is moved, the cursor should reappear, even if a different window has focus.

SOFTWARE/OS VERSIONS

Operating System: NixOS 24.11
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.3 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 62.0 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Comment 1 Nate Graham 2024-12-20 19:09:25 UTC
I can't reproduce that issue myself on git master.
Comment 2 username 2024-12-21 06:32:45 UTC
Can't reproduce it on 6.2.4. When I enter text into Window B, the mouse cursor don't disappear
Comment 3 Paul Worrall 2024-12-23 12:45:08 UTC
Hmm, I can reproduce this on both git master and 6.2.4
Comment 4 John Kizer 2025-01-02 04:25:53 UTC
Created attachment 177026 [details]
Cursor not reappearing when moved, after typing occurs in another window
Comment 5 John Kizer 2025-01-02 04:27:31 UTC
I can reproduce this on Fedora KDE 41, uploaded an attachment as an example - interestingly, the shake cursor effect causes it to temporarily appear, then disappear again until it's moved out from its current window.
Comment 6 ranzatsu 2025-02-14 23:56:02 UTC
I have a similar issue.
While watching a (seemingly only) YouTube fullscreen video, press and hold Alt-Tab the mouse only appears on the Task switcher.
It disappears when moved out and when shaking it will go visible only to disappear again, just like in the video.

I could not replicate the issue when switching windows.

Plasma Version: 6.3.0
Frameworks: 6.10.0
Qt Version: 6.8.2
Browser: Firefox

Interestingly i have an XTX too -_-