fn app_state() -> &'static OnceLock<Arc<AppState>>Expand description
Phase B.9.1 — handle to host AppState for the static
SetWinEventHook callback (the OS API takes a fixed-shape
extern "system" fn, so AppState has to be reachable through
a static). Set once by install_hooks(state). The callback
reads pending_window_creations to supply label_hint on
EVENT_OBJECT_CREATE, eliminating the launcher-side
“pending HWND with no matching mirror” race.