X11: Fix cursor hover query retry behavior

XQueryPointer returns zero on BadWindow so the retry did not happen.

Related to ceb20c7f97.
This commit is contained in:
Camilla Löwy 2020-07-10 00:03:53 +02:00
parent ceb20c7f97
commit 49dbcfcb8c

View File

@ -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;
}