mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-24 17:48:34 +02:00
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:
@@ -228,8 +228,7 @@ impl WindowManager {
|
|||||||
.is_some();
|
.is_some();
|
||||||
|
|
||||||
if !window.is_window()
|
if !window.is_window()
|
||||||
|| should_act
|
|| (should_act && !programmatically_hidden_hwnds.contains(&window.hwnd))
|
||||||
|| !programmatically_hidden_hwnds.contains(&window.hwnd)
|
|
||||||
{
|
{
|
||||||
hide = true;
|
hide = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user