From 86a5ef487f8627bec285eb40f4a03858ee24c612 Mon Sep 17 00:00:00 2001 From: atagen Date: Sat, 21 Jun 2025 21:49:40 +1000 Subject: [PATCH] fix: tag all windows on WindowsChanged --- daemon/manager.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/daemon/manager.rs b/daemon/manager.rs index ac3bd42..1478da9 100644 --- a/daemon/manager.rs +++ b/daemon/manager.rs @@ -311,7 +311,16 @@ impl NiriTag { // WorkspaceActivated { .. } => (), // WorkspacesChanged { .. } => (), // WorkspaceUrgencyChanged { .. } => (), - // WindowsChanged { .. } => (), + WindowsChanged { windows } => { + for w in windows { + self.windows.entry(w.id).or_insert(0); + let action = self.do_action(TagAction::ChangeWindow(w.id)).await; + if let Err(e) = action { + tracing::warn!("Failed to ChangeWindow on {}: {}", w.id, e); + } + } + Ok(()) + } // WindowUrgencyChanged { .. } => (), _ => Ok(()), }