mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
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:
parent
ceb20c7f97
commit
49dbcfcb8c
@ -2586,11 +2586,9 @@ int _glfwPlatformWindowHovered(_GLFWwindow* window)
|
|||||||
|
|
||||||
if (_glfw.x11.errorCode == BadWindow)
|
if (_glfw.x11.errorCode == BadWindow)
|
||||||
w = _glfw.x11.root;
|
w = _glfw.x11.root;
|
||||||
|
else if (!result)
|
||||||
if (!result)
|
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
|
else if (w == window->x11.handle)
|
||||||
if (w == window->x11.handle)
|
|
||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user