From 0f385d6245da2a99c271e596e9a8c504029c740a Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Sat, 2 Nov 2024 01:32:17 +0000 Subject: [PATCH] fix(wm): restore hidden windows correctly Fixes the issue talked on Discord[1] here where when using `Hide` as hiding behaviour some windows were hidden and never restored. The same would happen if using stacks with apps that matched a tray_and_multi_window_identifiers rule. [1]: https://discord.com/channels/898554690126630914/898554690608967786/1301581412008202298 --- komorebi/src/process_event.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index d8606aee..93e339c1 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -228,8 +228,7 @@ impl WindowManager { .is_some(); if !window.is_window() - || should_act - || !programmatically_hidden_hwnds.contains(&window.hwnd) + || (should_act && !programmatically_hidden_hwnds.contains(&window.hwnd)) { hide = true; }