config: add just-mapped window criteria
This commit is contained in:
parent
e36ccd560c
commit
5f1268cada
16 changed files with 95 additions and 4 deletions
|
|
@ -20,6 +20,7 @@ macro_rules! fixed_root_criterion {
|
|||
pub mod tlmm_client;
|
||||
pub mod tlmm_floating;
|
||||
pub mod tlmm_fullscreen;
|
||||
pub mod tlmm_just_mapped;
|
||||
pub mod tlmm_kind;
|
||||
pub mod tlmm_seat_focus;
|
||||
pub mod tlmm_string;
|
||||
|
|
|
|||
11
src/criteria/tlm/tlm_matchers/tlmm_just_mapped.rs
Normal file
11
src/criteria/tlm/tlm_matchers/tlmm_just_mapped.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
||||
|
||||
pub struct TlmMatchJustMapped(pub bool);
|
||||
|
||||
fixed_root_criterion!(TlmMatchJustMapped, just_mapped);
|
||||
|
||||
impl CritFixedRootCriterion<ToplevelData> for TlmMatchJustMapped {
|
||||
fn matches(&self, data: &ToplevelData) -> bool {
|
||||
data.just_mapped()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue