X11: Fix joystick detection before joystick init

Spotted by @Luflosi.
master
Camilla Löwy ago%!(EXTRA string=5 years)
parent e0f7ce402b
commit c01acc267a
  1. 3
      src/x11_window.c

@ -2776,7 +2776,8 @@ void _glfwPlatformPollEvents(void)
_GLFWwindow* window; _GLFWwindow* window;
#if defined(__linux__) #if defined(__linux__)
_glfwDetectJoystickConnectionLinux(); if (_glfw.joysticksInitialized)
_glfwDetectJoystickConnectionLinux();
#endif #endif
XPending(_glfw.x11.display); XPending(_glfw.x11.display);

Loading…
Cancel
Save