(cherry picked from commit 363d471441)
This commit is contained in:
Camilla Löwy 2022-02-18 15:35:09 +01:00
parent 7f752c17c6
commit e219c00d87
1 changed files with 1 additions and 3 deletions

View File

@ -2782,8 +2782,6 @@ GLFWbool _glfwPlatformRawMouseMotionSupported(void)
void _glfwPlatformPollEvents(void)
{
_GLFWwindow* window;
#if defined(__linux__)
_glfwDetectJoystickConnectionLinux();
#endif
@ -2796,7 +2794,7 @@ void _glfwPlatformPollEvents(void)
processEvent(&event);
}
window = _glfw.x11.disabledCursorWindow;
_GLFWwindow* window = _glfw.x11.disabledCursorWindow;
if (window)
{
int width, height;