From 40b32332aed9a550f15f0fec8be197cebebfe31b Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 30 Nov 2024 15:41:57 -0800 Subject: [PATCH] fix(wm): track all hwnds in known_hwnds --- komorebi/src/process_event.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index e0de3c05..c2c2660f 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -709,6 +709,20 @@ impl WindowManager { known_hwnds.push(window.hwnd); } } + + for window in workspace.floating_windows() { + known_hwnds.push(window.hwnd); + } + + if let Some(window) = workspace.maximized_window() { + known_hwnds.push(window.hwnd); + } + + if let Some(container) = workspace.monocle_container() { + for window in container.windows() { + known_hwnds.push(window.hwnd); + } + } } }