VulkanMod icon indicating copy to clipboard operation
VulkanMod copied to clipboard

Wayland: Cursor position isn't centered when opening a GUI + doesn't use the system cursor

Open shrobbyy opened this issue 11 months ago • 4 comments

Describe the bug

I'm using Fedora KDE on Wayland and using VulkanMod will change the cursor design to Adwaita even though I'm using the Breeze Light cursor. The more major issue is that the cursor position won't be centered if I open an inventory which is absolutely fatal for me.

Steps to reproduce

Launch the game on Wayland.

Log files

https://mclo.gs/93q1vnq

shrobbyy avatar Dec 31 '24 20:12 shrobbyy

Actually these issues aren't come from the VulkanMod itself, but it comes from the GLFW that has many problems when using GLFW as Wayland especially using custom GLFW for Vulkan support. Since these bugs between incosistent cursor position and custom cursor issue from GLFW aren't fixed yet, so the solution for fix this bug is change the session to X11 or in Prism Launcher untick "Use system installation of GLFW" for using GLFW as Xwayland instead (with the consequences numpad keys support will be minus or act only as number keys there) until these GLFW Wayland bug should be fixed.

IrfanKitsune avatar Jan 04 '25 01:01 IrfanKitsune

Kinda late but the issue of the cursor not getting to the center when opening a gui/menu still hasn't been fixed, here is a video showing it:

https://github.com/user-attachments/assets/8a1d9330-d113-49d0-b676-df2a09fafb4d

Anonyku05 avatar May 02 '25 17:05 Anonyku05

Actually these issues aren't come from the VulkanMod itself, but it comes from the GLFW that has many problems when using GLFW as Wayland especially using custom GLFW for Vulkan support. Since these bugs between incosistent cursor position and custom cursor issue from GLFW aren't fixed yet, so the solution for fix this bug is change the session to X11 or in Prism Launcher untick "Use system installation of GLFW" for using GLFW as Xwayland instead (with the consequences numpad keys support will be minus or act only as number keys there) until these GLFW Wayland bug should be fixed.

kinda dumb question but will there be a fix to this in the future? or is it advised that we should just continue to play the game in x11?

glitchyre avatar Oct 10 '25 05:10 glitchyre

Quick update to this: In snapshot 25w43a, Mojang updated LWJGL from 3.3.3 to 3.3.6 which has native Wayland support. I had created a report on Mojira for this, which has been resolved as "fixed", but it's not actually fixed. Mojang just reverted to LWJGL 3.3.3 to run XWayland again. Mojang is waiting for LWJGL 3.4 to release which fix this Wayland issue automatically, because GLFW added the cursor warping protocol which has been added to Wayland just recently. Anyway, fixing this issue on VulkanMod might be a cake walk now.

shrobbyy avatar Oct 31 '25 08:10 shrobbyy