diff --git a/src/x11_window.c b/src/x11_window.c index 5b105a68..f88a45c4 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -2586,11 +2586,9 @@ int _glfwPlatformWindowHovered(_GLFWwindow* window) if (_glfw.x11.errorCode == BadWindow) w = _glfw.x11.root; - - if (!result) + else if (!result) return GLFW_FALSE; - - if (w == window->x11.handle) + else if (w == window->x11.handle) return GLFW_TRUE; }