Dont call detect joysticks if support for them has been disabled

This commit is contained in:
Kovid Goyal
2019-07-08 11:18:00 +05:30
parent d259b12ae7
commit 7e36489034

2
glfw/x11_window.c vendored
View File

@@ -2489,7 +2489,7 @@ _glfwDispatchX11Events(void) {
unsigned dispatched = 0;
#if defined(__linux__)
_glfwDetectJoystickConnectionLinux();
if (_glfw.hints.init.enableJoysticks) _glfwDetectJoystickConnectionLinux();
#endif
dispatched += dispatch_x11_queued_events(XEventsQueued(_glfw.x11.display, QueuedAfterFlush));