(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

View File

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