Package Details: glfw-wayland-minecraft-cursorfix 3.4-6

Git Clone URL: https://aur.archlinux.org/glfw-wayland-minecraft-cursorfix.git (read-only, click to copy)
Package Base: glfw-wayland-minecraft-cursorfix
Description: A free, open source, portable framework for graphical application development (wayland, patched for Minecraft)
Upstream URL: https://github.com/BoyOrigin/glfw-wayland
Keywords: glfw minecraft wayland
Licenses: custom:zlib
Conflicts: glfw, glfw-wayland, glfw-wayland-minecraft-libdecoration
Provides: glfw
Submitter: lea
Maintainer: lea
Last Packager: lea
Votes: 6
Popularity: 0.77
First Submitted: 2024-03-04 16:38 (UTC)
Last Updated: 2025-02-25 16:30 (UTC)

Required by (162)

Sources (9)

Latest Comments

FreeFull commented on 2025-02-28 23:06 (UTC) (edited on 2025-03-01 05:15 (UTC) by FreeFull)

Scrolling with a touchpad seems to be super-sensitive, I'm guessing Minecraft interprets each fractional scroll event as a full scroll tick. Would it be possible to only have regular discrete scroll events, or something like that, to avoid this?

Edit: It seems that minecraft has a discrete scrolling setting ever since 1.14, and the difference in sensitivity between X11 and Wayland isn't really enough to be truly a problem.. The only problem is buggy mods that don't handle discrete scrolling properly, but maybe that shouldn't be this package's responsibility after all.

lea commented on 2025-02-25 16:32 (UTC)

@Prior5151 Thanks a lot, it's been added.

Prior5151 commented on 2025-02-25 09:39 (UTC) (edited on 2025-02-25 09:40 (UTC) by Prior5151)

I also ran into the issue that Fazzi had, and some mod in the pack I was attempting to play (Sky Factory 5), took issue with earlyWindowControl being disabled. Instead I just also patched the other functions causing the issue, which worked. So hopefully it could be added to the package itself:

diff --git a/src/wl_window.c b/src/wl_window.c
index 5b491ffb..05239e02 100644
--- a/src/wl_window.c
+++ b/src/wl_window.c
@@ -2236,16 +2236,16 @@ void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos)
     // A Wayland client is not aware of its position, so just warn and leave it
     // as (0, 0)

-    _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
-                    "Wayland: The platform does not provide the window position");
+    fprintf(stderr,
+                    "Wayland: The platform does not provide the window position\n");
 }

 void _glfwSetWindowPosWayland(_GLFWwindow* window, int xpos, int ypos)
 {
     // A Wayland client can not set its position, so just warn

-    _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
-                    "Wayland: The platform does not support setting the window position");
+    fprintf(stderr,
+                    "Wayland: The platform does not support setting the window position\n");
 }

 void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height)

lea commented on 2025-02-12 20:49 (UTC)

@FreePenguin Done, nice find!

FreePenguin commented on 2025-02-12 20:24 (UTC)

Hi! Could you also include this patch as well? https://github.com/glfw/glfw/pull/2583

Zenn commented on 2025-02-01 22:10 (UTC)

Error with window position in forge/neoforge could be solved by setting earlyWindowControl to false in fml.toml in config folder. However in my case it's still not working cos after all things it just freezes while still responding to mouse events.

Fazzi commented on 2024-12-20 10:54 (UTC)

I still seem to be getting net.minecraft.class_1041$class_4716: GLFW error 65548: Wayland: The platform does not provide the window position, I've enabled the glfw override in prism launcher however it still seems to be having issues

lea commented on 2024-08-13 17:16 (UTC)

Seems to work fine on Fabulously Optimized but not on many forge modpacks which I've tried (ATM10, Chocolate Edition)

Yeah Forge/NeoForge don't support Wayland, here's a relevant issue tracking this for NeoForge: https://github.com/neoforged/NeoForge/issues/657

Fazzi commented on 2024-08-13 17:10 (UTC)

Seems to work fine on Fabulously Optimized but not on many forge modpacks which I've tried (ATM10, Chocolate Edition)

skerit commented on 2024-06-19 10:18 (UTC) (edited on 2024-06-19 10:18 (UTC) by skerit)

Works great!

There is a 1 pixel transparent gap between the actual rendered content & the title bar, allowing you to see the application underneath, but I can live with that.

If you're using Prism launcher, don't forget to go to "Settings" » "Workarounds" and enable the "Native libraries" and "Use system installation of GLFW" checkboxes.

And even though this package installs glfw in the correct location, I still had to manually enter the path in the "GLFW library path" text input to, which is /usr/lib/libglfw.so.3.4