pointer_warp_v1 is inconsistent and stops working after some time #14622
Replies: 7 comments 10 replies
|
Please fix |
|
I will be useful and provide info Test clients work successfully for the first attempts, for example opening inventory in Minecraft, or opening the buy menu in cs2 After a few attempts (up to like 50 or so idk) the cursor stops being warped to the center when asked and just stays in the old position Tagging @ikalco for original implementation of the proto in #11469 For Minecraft you either need the latest 26.3-snapshot 4 or 26.1+ with https://github.com/jdkeke142/glfw-wayland-minecraft. For CS2 you might need Pinned down to being an issue with the proto impl because the GLFW fork has env var |
|
I know nothing of pointer warp, but looking at the code for 2 minutes there seems to be a common buffer of 100 "serials" used for all kinds of actions, and basically seems like if you press 100 keys after focusing the client, the serial used to enter the window gets popped and pointer warp will no longer be accepted, unless window is re-focused, does that sound about right? The fix? Put the enter-serial in its own little thing and remember it forever... |
|
Hello, check this video. |
1.21.11 with it worked for me, idk tho |
Uh oh!
There was an error while loading. Please reload this page.
jdkeke142/glfw-wayland-minecraft#1
All reactions