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
This commit is contained in:
alex-ds13
2024-11-02 01:32:17 +00:00
committed by LGUG2Z
parent 5503323695
commit 0f385d6245

View File

@@ -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;
}