Skip to content

Commit

Permalink
fix(wm): track all hwnds in known_hwnds
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Nov 30, 2024
1 parent 8743cdd commit 40b3233
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions komorebi/src/process_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}

Expand Down

0 comments on commit 40b3233

Please sign in to comment.