X11: Fix cursor hover query retry behavior

From upstream: 49dbcfcb8c.
This commit is contained in:
Luflosi 2020-07-11 18:59:28 +02:00
parent 64dee63b73
commit 356e950122
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

6
glfw/x11_window.c vendored
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;
}