feat: add event support for window urgency

This commit is contained in:
atagen 2025-06-23 17:23:32 +10:00
parent e53a452ada
commit 836e5402e1

View File

@ -434,7 +434,15 @@ impl NiriTag {
}
Ok(())
}
// WindowUrgencyChanged { .. } => (),
WindowUrgencyChanged { id, urgent } => {
if let Some(&t) = self.windows.get(&id) {
// could potentially overwrite urgent conditions on multiple windows in the same tag
// but the tag concern has been raised, at least
self.tags.entry(t).and_modify(|ts| ts.urgent = urgent);
self.fire_event(TagEvent::TagUrgent(t)).await;
}
Ok(())
}
_ => Ok(()),
}
}