mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
fix(wm): handle minimize event edge case
This commit handles an edge case where minimize events would not be processed if both transparency and animations were enabled at the same time. fix #1231
This commit is contained in:
1 parent
392e4cc0c9
commit
77ef259ea8
1 file changed
+12
-2
@@ -93,8 +93,18 @@ impl WindowManager {
|
||||
.map(|w| w.hwnd)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
if w.contains_managed_window(event_hwnd)
|
||||
&& !visible_hwnds.contains(&event_hwnd)
|
||||
let contains_managed_window = w.contains_managed_window(event_hwnd);
|
||||
|
||||
// this is for an old stackbar clicking fix
|
||||
if contains_managed_window && !visible_hwnds.contains(&event_hwnd) {
|
||||
transparency_override = true;
|
||||
}
|
||||
|
||||
// but we always want to handle a minimize event when transparency overrides
|
||||
// are applied
|
||||
if !transparency_override
|
||||
&& contains_managed_window
|
||||
&& matches!(event, WindowManagerEvent::Minimize(_, _))
|
||||
{
|
||||
transparency_override = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user