Linux: Fix slow startup on some systems caused by GLFW searching for joysticks. Since kitty does not use joysticks, disable joystick support.

Fixes #830
This commit is contained in:
Kovid Goyal
2018-08-31 07:50:51 +05:30
parent d276317e3a
commit ab960ea12d
8 changed files with 26 additions and 6 deletions

6
glfw/wl_init.c vendored
View File

@@ -688,8 +688,10 @@ int _glfwPlatformInit(void)
wl_display_roundtrip(_glfw.wl.display);
#ifdef __linux__
if (!_glfwInitJoysticksLinux())
return GLFW_FALSE;
if (_glfw.hints.init.enableJoysticks) {
if (!_glfwInitJoysticksLinux())
return GLFW_FALSE;
}
#endif
_glfwInitTimerPOSIX();