From e219c00d8740e1e7a7e84693d3690c694c7adc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 18 Feb 2022 15:35:09 +0100 Subject: [PATCH] Cleanup (cherry picked from commit 363d4714414e53312cd5cb0be230f040580487ad) --- src/x11_window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index 94d83334..6de0bcd4 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -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;