fix: tag all windows on WindowsChanged

This commit is contained in:
atagen 2025-06-21 21:49:40 +10:00
parent 05e12ea2f2
commit 86a5ef487f

View File

@ -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(()),
}