Skip to content

Commit

Permalink
fix(wm): remove object name change spam guard
Browse files Browse the repository at this point in the history
The spam guard removed in this commit is no longer needed after commit
54c58be.
  • Loading branch information
LGUG2Z committed May 15, 2024
1 parent 3d53c60 commit 228cb26
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions komorebi/src/process_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(&notification)?)?;
border_manager::event_tx().send(border_manager::Notification)?;
}
notify_subscribers(&serde_json::to_string(&notification)?)?;
border_manager::event_tx().send(border_manager::Notification)?;

tracing::info!("processed: {}", event.window().to_string());
Ok(())
Expand Down

0 comments on commit 228cb26

Please sign in to comment.