config: add urgency window criteria
This commit is contained in:
parent
dcf57db3df
commit
eb172e9d8c
15 changed files with 56 additions and 5 deletions
|
|
@ -21,4 +21,5 @@ pub mod tlmm_client;
|
|||
pub mod tlmm_floating;
|
||||
pub mod tlmm_kind;
|
||||
pub mod tlmm_string;
|
||||
pub mod tlmm_urgent;
|
||||
pub mod tlmm_visible;
|
||||
|
|
|
|||
11
src/criteria/tlm/tlm_matchers/tlmm_urgent.rs
Normal file
11
src/criteria/tlm/tlm_matchers/tlmm_urgent.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
||||
|
||||
pub struct TlmMatchUrgent(pub bool);
|
||||
|
||||
fixed_root_criterion!(TlmMatchUrgent, urgent);
|
||||
|
||||
impl CritFixedRootCriterion<ToplevelData> for TlmMatchUrgent {
|
||||
fn matches(&self, data: &ToplevelData) -> bool {
|
||||
data.wants_attention.get()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue