Bug 488500

Summary: Cursor doesn't snap to center if it's moved a bit before opening the inventory in minecraft
Product: [Plasma] kwin Reporter: kostadinshishmanov
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde.outline995, nate
Priority: NOR    
Version: git-stable-Plasma/6.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kostadinshishmanov 2024-06-14 14:13:22 UTC
SUMMARY
Sometimes when opening the inventory in Minecraft the cursor will snap to a random place on the screen if the mouse has been moved a bit before opening the inventory.

STEPS TO REPRODUCE
1. start a minecraft world
2. move the mouse 
3. open the inventory right after moving the mouse

OBSERVED RESULT

Sometimes the cursor snaps in a place different than the center

EXPECTED RESULT

The cursor always snaps to the center of the screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Graphics Platform: Wayland
Kwin is at commit 4b3f6a4312c02243c33d01e38ce2827664cae8ac
Dual Monitor
Mouse is Logitech G Pro X Superlight
Comment 1 kostadinshishmanov 2024-06-17 16:12:21 UTC
When using a grindstone in the game it gets even worse, and breaks the cursor even more, and after that consistenly isn't centered when using for example an enchantment table.
Comment 2 kostadinshishmanov 2024-11-21 23:24:16 UTC
This is still reproducible and it happens in Counter-Strike 2's buy menu too.
Comment 3 kde.outline995 2025-02-01 01:03:22 UTC
Hi, someone in the KDE Discussion website and I both have the same problem and is quite annoying. https://discuss.kde.org/t/mouse-can-move-in-games-when-it-shouldnt-be-able-to-and-it-isnt-visible/19565.

Are there any updates regarding this problem? It is still reproducible in minecraft on my system (fedora 41 KDE 6.2.5 wayland)

The other person with this issue has a nice video displaying the issue. https://youtu.be/xQWZdzZULCM.

Thanks for everyone's time 🙂