Bug 490065 - cursor: Games that lock the cursor for radial menus can fail to set mouse position
Summary: cursor: Games that lock the cursor for radial menus can fail to set mouse pos...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 6.1.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-11 01:31 UTC by Matthew
Modified: 2024-07-17 14:28 UTC (History)
2 users (show)

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


Attachments
Counter Strike 2 Showcasing The Cursor Issue (3.34 MB, video/mp4)
2024-07-11 01:31 UTC, Matthew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew 2024-07-11 01:31:57 UTC
Created attachment 171556 [details]
Counter Strike 2 Showcasing The Cursor Issue

SUMMARY
Games with radical menus can have issues moving the cursor position.

STEPS TO REPRODUCE
1. Launch games with radical menus such as Counter Strike 2's "Buy" menu in game or Palia's item select menu.
2. Open and close this menu while moving your mouse at the same time
3. Notice how once in a while your mouse will not snap into position

OBSERVED RESULT
Mouse snapping is unpredictable.

EXPECTED RESULT
Mouse snapping should be consistent.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 23.4 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT
Manufacturer: ASUS

ADDITIONAL INFORMATION
I tested this on Gnome and X11 Plasma and was not able to replicate the issue. I tested a game with native Linux support and another game using Proton, the results were the same. I created a video that is under 4MB to attach to this bug report. Hopefully it's good enough quality to see the issue.
Comment 1 Matthew 2024-07-11 01:35:58 UTC
The issue occurs at 0:15 in the video clip. I have an ultrawide monitor and the 4mb limitation really makes it hard to showcase this issue if you are using a 16:9 monitor. If necessary I can look into options to help show this better.
Comment 2 Zamundaaa 2024-07-17 13:39:53 UTC
> I tested this on Gnome and X11 Plasma and was not able to replicate the issue
Do you mean Gnome Wayland or Gnome X11?
Generally, where the cursor gets placed after being locked in the window is up to Xwayland. It has some heuristics that might fail.
Comment 3 Matthew 2024-07-17 13:47:38 UTC
(In reply to Zamundaaa from comment #2)
> > I tested this on Gnome and X11 Plasma and was not able to replicate the issue
> Do you mean Gnome Wayland or Gnome X11?
> Generally, where the cursor gets placed after being locked in the window is
> up to Xwayland. It has some heuristics that might fail.

Gnome Wayland and X11 Plasma, after I was not able to replicate the issue on X11 Plasma I didn't see the need to try and test X11 Gnome.
Comment 4 Zamundaaa 2024-07-17 14:28:55 UTC
Okay