mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-17 17:26:54 +02: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:
@@ -93,8 +93,18 @@ impl WindowManager {
|
|||||||
.map(|w| w.hwnd)
|
.map(|w| w.hwnd)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
if w.contains_managed_window(event_hwnd)
|
let contains_managed_window = w.contains_managed_window(event_hwnd);
|
||||||
&& !visible_hwnds.contains(&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;
|
transparency_override = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user