mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
X11: Fix cursor hover query retry behavior
XQueryPointer returns zero on BadWindow so the retry did not happen. Related toceb20c7f97
. (cherry picked from commit49dbcfcb8c
)
This commit is contained in:
parent
539f4bdca2
commit
85a169ff50
@ -2601,11 +2601,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user