From 228cb26b64b61cd37a492779d3937374b8790c64 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 15 May 2024 07:51:43 -0700 Subject: [PATCH] fix(wm): remove object name change spam guard The spam guard removed in this commit is no longer needed after commit 54c58be. --- komorebi/src/process_event.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index e4d67b9dd..d0f40bf45 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -23,7 +23,6 @@ use crate::window::RuleDebug; use crate::window_manager::WindowManager; use crate::window_manager_event::WindowManagerEvent; use crate::windows_api::WindowsApi; -use crate::winevent::WinEvent; use crate::workspace_reconciliator; use crate::workspace_reconciliator::ALT_TAB_HWND; use crate::workspace_reconciliator::ALT_TAB_HWND_INSTANT; @@ -623,15 +622,8 @@ impl WindowManager { state: self.as_ref().into(), }; - // Avoid unnecessary updates, this fires every single time you interact - // with something on JetBrains IDEs - if !matches!( - event, - WindowManagerEvent::Show(WinEvent::ObjectNameChange, _) - ) { - notify_subscribers(&serde_json::to_string(¬ification)?)?; - border_manager::event_tx().send(border_manager::Notification)?; - } + notify_subscribers(&serde_json::to_string(¬ification)?)?; + border_manager::event_tx().send(border_manager::Notification)?; tracing::info!("processed: {}", event.window().to_string()); Ok(())