From 9c09284b0f1183785e52cc0d86d01e93efc988f9 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Mon, 25 Nov 2024 10:22:12 -0800 Subject: [PATCH] fix(subscriptions): add override for title updates --- komorebi/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/komorebi/src/lib.rs b/komorebi/src/lib.rs index 0d0078b20..43190f855 100644 --- a/komorebi/src/lib.rs +++ b/komorebi/src/lib.rs @@ -64,6 +64,7 @@ use crate::core::config_generation::IdWithIdentifier; use crate::core::config_generation::MatchingRule; use crate::core::config_generation::MatchingStrategy; use crate::core::config_generation::WorkspaceMatchingRule; +use crate::winevent::WinEvent; use color_eyre::Result; use os_info::Version; use parking_lot::Mutex; @@ -307,6 +308,11 @@ pub fn notify_subscribers(notification: Notification, state_has_been_modified: b | NotificationEvent::Socket(SocketMessage::AddSubscriberSocketWithOptions(_, _)) | NotificationEvent::Socket(SocketMessage::Theme(_)) | NotificationEvent::Socket(SocketMessage::ReloadStaticConfiguration(_)) + | NotificationEvent::WindowManager(WindowManagerEvent::TitleUpdate(_, _)) + | NotificationEvent::WindowManager(WindowManagerEvent::Show( + WinEvent::ObjectNameChange, + _ + )) ); let notification = &serde_json::to_string(¬ification)?;