Skip to content

Commit

Permalink
fix(wm): restore hidden windows correctly
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alex-ds13 authored and LGUG2Z committed Nov 2, 2024
1 parent 5503323 commit 0f385d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions komorebi/src/process_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f385d6

Please sign in to comment.