Wayland: Only rely on keyboard enter/leave events for OS window focus state

GNOME has broken activated==focused assumption GLFW used to make. Also
follows upstream GLFW behavior. c2f0a0ae59

Fixes #8716
This commit is contained in:
Kovid Goyal
2025-06-09 06:52:56 +05:30
parent b643e7e372
commit 2456574992
2 changed files with 3 additions and 1 deletions

View File

@@ -123,6 +123,9 @@ Detailed list of changes
- Graphics protocol: Add a note clarifying image update behavior on re-transmission (:iss:`8701`)
- Wayland GNOME: Fix incorrect OS Window tracking because GNOME has started
activating windows on non-current workspaces (:iss:`8716`)
0.42.1 [2025-05-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1
glfw/wl_window.c vendored
View File

@@ -809,7 +809,6 @@ apply_xdg_configure_changes(_GLFWwindow *window) {
window->wl.current.toplevel_states = new_states;
window->wl.current.width = width;
window->wl.current.height = height;
_glfwInputWindowFocus(window, window->wl.current.toplevel_states & TOPLEVEL_STATE_ACTIVATED);
if (live_resize_done) report_live_resize(window, false);
}
}