mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-08 11:53:29 +02:00
fix(wm): exclude minimized hwnds from show event
This commit ensures that a WindowManagerEvent::Show will not be triggered when a WinEvent::ObjectNameChange is received for an application in the object_name_change_on_launch whitelist. This notably impacts Firefox when the window title changes while the application is minimized (for example, on a page with YouTube autoplay enabled). fix #941
This commit is contained in:
@@ -151,7 +151,10 @@ impl WindowManagerEvent {
|
||||
)
|
||||
.is_some();
|
||||
|
||||
if should_trigger_show {
|
||||
// should not trigger show on minimized windows, for example when firefox sends
|
||||
// this message due to youtube autoplay changing the window title
|
||||
// https://github.com/LGUG2Z/komorebi/issues/941
|
||||
if should_trigger_show && !window.is_miminized() {
|
||||
Option::from(Self::Show(winevent, window))
|
||||
} else {
|
||||
Option::from(Self::TitleUpdate(winevent, window))
|
||||
|
||||
Reference in New Issue
Block a user