1
0
Fork 0
forked from wry/wry

config: add xwayland client criteria

This commit is contained in:
Julian Orth 2025-05-03 12:55:22 +02:00
parent a952e658da
commit bdabb7bbdd
13 changed files with 47 additions and 1 deletions

View file

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

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