Admicos / minecraft-wayland

A better way of running Minecraft Without XWayland. Because I REALLY had nothing better to do with my life.
258 stars 14 forks source link

Mouse not centering when opening inventory #52

Open tagomaco opened 1 year ago

tagomaco commented 1 year ago

Tested on Hyprland, Sway and Minecraft 1.20.1, 1.16.1 with AUR package glfw-wayland-minecraft-libdecoration.

ZerdoX-x commented 1 year ago

Wayland itself doesn't support setting cursor position. You can even see such error in the logs:

[Render thread/ERROR]: ########## GL ERROR ##########
[Render thread/ERROR]: @ Pre render
[Render thread/ERROR]: 65548: Wayland: The platform does not support setting the cursor position
BoyOrigin commented 1 year ago

Wayland itself doesn't support setting cursor position.

Well my fork is able to fix that by using Pointer constraints protocol.