mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
GLFW: X11: Fix joystick detection before joystick init
From upstream: c01acc267a.
This commit is contained in:
parent
06b30d1cc3
commit
bc61a81d7a
1 changed files with 2 additions and 1 deletions
3
glfw/x11_window.c
vendored
3
glfw/x11_window.c
vendored
|
|
@ -2653,7 +2653,8 @@ _glfwDispatchX11Events(void) {
|
|||
unsigned dispatched = 0;
|
||||
|
||||
#if defined(__linux__)
|
||||
_glfwDetectJoystickConnectionLinux();
|
||||
if (_glfw.joysticksInitialized)
|
||||
_glfwDetectJoystickConnectionLinux();
|
||||
#endif
|
||||
dispatched += dispatch_x11_queued_events(XEventsQueued(_glfw.x11.display, QueuedAfterFlush));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue