mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
fix(wm): remove object name change spam guard
The spam guard removed in this commit is no longer needed after commit 54c58be.
This commit is contained in:
@@ -23,7 +23,6 @@ use crate::window::RuleDebug;
|
|||||||
use crate::window_manager::WindowManager;
|
use crate::window_manager::WindowManager;
|
||||||
use crate::window_manager_event::WindowManagerEvent;
|
use crate::window_manager_event::WindowManagerEvent;
|
||||||
use crate::windows_api::WindowsApi;
|
use crate::windows_api::WindowsApi;
|
||||||
use crate::winevent::WinEvent;
|
|
||||||
use crate::workspace_reconciliator;
|
use crate::workspace_reconciliator;
|
||||||
use crate::workspace_reconciliator::ALT_TAB_HWND;
|
use crate::workspace_reconciliator::ALT_TAB_HWND;
|
||||||
use crate::workspace_reconciliator::ALT_TAB_HWND_INSTANT;
|
use crate::workspace_reconciliator::ALT_TAB_HWND_INSTANT;
|
||||||
@@ -623,15 +622,8 @@ impl WindowManager {
|
|||||||
state: self.as_ref().into(),
|
state: self.as_ref().into(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Avoid unnecessary updates, this fires every single time you interact
|
notify_subscribers(&serde_json::to_string(¬ification)?)?;
|
||||||
// with something on JetBrains IDEs
|
border_manager::event_tx().send(border_manager::Notification)?;
|
||||||
if !matches!(
|
|
||||||
event,
|
|
||||||
WindowManagerEvent::Show(WinEvent::ObjectNameChange, _)
|
|
||||||
) {
|
|
||||||
notify_subscribers(&serde_json::to_string(¬ification)?)?;
|
|
||||||
border_manager::event_tx().send(border_manager::Notification)?;
|
|
||||||
}
|
|
||||||
|
|
||||||
tracing::info!("processed: {}", event.window().to_string());
|
tracing::info!("processed: {}", event.window().to_string());
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user