mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01: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:
1 parent
ff653e78af
commit
13e2cbc7a1
1 file changed
+4
-1
@@ -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