Fix wayland backend windowfocused() implementation

This commit is contained in:
Kovid Goyal
2024-03-25 10:33:27 +05:30
parent 3fa5125f24
commit e9689ea50d

2
glfw/wl_window.c vendored
View File

@@ -1455,7 +1455,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
int _glfwPlatformWindowFocused(_GLFWwindow* window)
{
return _glfw.wl.keyboardFocusId = window ? window->id : 0;
return _glfw.wl.keyboardFocusId == (window ? window->id : 0);
}
int _glfwPlatformWindowOccluded(_GLFWwindow* window UNUSED)