In the current port of glfw, it does not correctly detect the libXcursor library, causing Minecraft >= 1.13 to not hide the cursor properly.
This diff fixes the problem and also updates glfw to 3.3.4 Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/glfw/Makefile,v retrieving revision 1.5 diff -u -p -r1.5 Makefile --- Makefile 29 Jan 2021 14:31:30 -0000 1.5 +++ Makefile 9 May 2021 03:37:05 -0000 @@ -1,7 +1,6 @@ -# $OpenBSD: Makefile,v 1.5 2021/01/29 14:31:30 kmos Exp $ - +# $OpenBSD$ COMMENT = open source, multi-platform library for creating windows -V = 3.3.2 +V = 3.3.4 DISTNAME = glfw-${V} CATEGORIES = graphics x11 Index: distinfo =================================================================== RCS file: /cvs/ports/graphics/glfw/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 29 Jan 2021 14:31:30 -0000 1.3 +++ distinfo 9 May 2021 03:37:05 -0000 @@ -1,2 +1,3 @@ -SHA256 (glfw-3.3.2.zip) = CKM6US8p19v3jqs5vXhYV2rcyVIoye/o5LxfDzJh78c= -SIZE (glfw-3.3.2.zip) = 1434297 +SHA256 (glfw-3.3.4.zip) = bbd2c42c660b725e9755eb417e40b373f0d4c03138c9b2e210d02cd308bd99cd +SIZE (glfw-3.3.4.zip) = 1444675 + Index: patches/patch-x11_init_c =================================================================== RCS file: patches/patch-x11_init_c diff -N patches/patch-x11_init_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-x11_init_c 9 May 2021 03:37:05 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ +diff --git src/x11_init.c src/x11_init.c +index 87b3eb78..3d2a0bee 100644 +--- src/x11_init.c ++++ src/x11_init.c +@@ -710,6 +710,8 @@ static GLFWbool initExtensions(void) + + #if defined(__CYGWIN__) + _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor-1.so"); ++#elif defined(__OpenBSD__) ++ _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor.so.5.0"); + #else + _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor.so.1"); + #endif