config: add xwayland client criteria
This commit is contained in:
parent
a952e658da
commit
bdabb7bbdd
13 changed files with 47 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ macro_rules! fixed_root_criterion {
|
|||
};
|
||||
}
|
||||
|
||||
pub mod clmm_is_xwayland;
|
||||
pub mod clmm_pid;
|
||||
pub mod clmm_sandboxed;
|
||||
pub mod clmm_string;
|
||||
|
|
|
|||
14
src/criteria/clm/clm_matchers/clmm_is_xwayland.rs
Normal file
14
src/criteria/clm/clm_matchers/clmm_is_xwayland.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use {
|
||||
crate::{client::Client, criteria::crit_graph::CritFixedRootCriterion},
|
||||
std::rc::Rc,
|
||||
};
|
||||
|
||||
pub struct ClmMatchIsXwayland(pub bool);
|
||||
|
||||
fixed_root_criterion!(ClmMatchIsXwayland, is_xwayland);
|
||||
|
||||
impl CritFixedRootCriterion<Rc<Client>> for ClmMatchIsXwayland {
|
||||
fn matches(&self, data: &Rc<Client>) -> bool {
|
||||
data.is_xwayland
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue