From f4fb25b63df16c8a6d87077d176e7fe1c80c04d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Sun, 17 Sep 2017 16:06:02 +0200 Subject: [PATCH] X11: Fix init order breaking cursor hiding The hidden cursor was created before Xcursor was loaded. --- src/x11_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/x11_init.c b/src/x11_init.c index 9f94cc5f..3bf07d2d 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -860,12 +860,13 @@ int _glfwPlatformInit(void) _glfw.x11.screen = DefaultScreen(_glfw.x11.display); _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); _glfw.x11.context = XUniqueContext(); - _glfw.x11.helperWindowHandle = createHelperWindow(); - _glfw.x11.hiddenCursorHandle = createHiddenCursor(); if (!initExtensions()) return GLFW_FALSE; + _glfw.x11.helperWindowHandle = createHelperWindow(); + _glfw.x11.hiddenCursorHandle = createHiddenCursor(); + if (XSupportsLocale()) { XSetLocaleModifiers("");