1
0
Fork 0
forked from wry/wry

config: add urgency window criteria

This commit is contained in:
Julian Orth 2025-05-01 18:38:57 +02:00
parent dcf57db3df
commit eb172e9d8c
15 changed files with 56 additions and 5 deletions

View file

@ -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;

View 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()
}
}