feat: add event support for window urgency
This commit is contained in:
parent
0b8a291b7d
commit
89871af5c4
@ -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(()),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user