pub fn apply_hwnd_destroyed(
state: &mut State,
hwnd: u64,
host_running: bool,
) -> Vec<Event>Expand description
Phase B.9.1 — handle Command::ReportHwndDestroyed. Three
outcomes:
- HWND links to a
WindowMirrorAND we already received aReportWindowClosedfor that label (mirror is gone) → no drift, expected ordering. - HWND links to a
WindowMirrorthat’s STILL instate.windows→ CEF didn’t report close yet. Renderer probably crashed →OrphanDestroydrift. - HWND was pending (never linked) → drop the pending entry, no drift (it never claimed to be a real window).