mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-14 21:04:04 +01:00
Switch the 40 Window::focus(mouse_follows)? call sites in process_event, process_command, workspace, window_manager, focus_manager and the stackbar click to backend().focus(WindowId::from_hwnd(..), mouse_follows). WindowsBackend::focus runs Window::focus, so the deferral while a window slides in, the already-foreground shortcut and the cursor centring are unchanged. animation/transition.rs:534 stays on Window::focus (it is the code Window::focus defers to). docs/dev/backend-switch.md records what is switched. BEHAVIOUR: a dead window now fails early with Error::WindowGone (before: the Win32 error from raise_and_focus_window) and a failed focus of a window that died meanwhile reports WindowGone; every caller uses ? or ignores the result. e2e gate needed: commands, focus, focus_follows_mouse, stacking, workspaces, lifecycle. Verified: Windows clippy -D warnings via tools/fast-check PASS; e2e not run.