X11: Fix cursor hover query retry behavior

From upstream: https://github.com/glfw/glfw/commit/49dbcfcb8c5a0f16fc914a114c8d5cfc1a5f97c8.
This commit is contained in:
Luflosi
2020-07-11 18:59:28 +02:00
parent 64dee63b73
commit 356e950122
+2 -4
View File
@@ -2470,11 +2470,9 @@ int _glfwPlatformWindowHovered(_GLFWwindow* window)
if (_glfw.x11.errorCode == BadWindow)
w = _glfw.x11.root;
if (!result)
else if (!result)
return false;
if (w == window->x11.handle)
else if (w == window->x11.handle)
return true;
}