config: add fullscreen window criteria
This commit is contained in:
parent
91c948b219
commit
e36ccd560c
14 changed files with 51 additions and 3 deletions
11
src/criteria/tlm/tlm_matchers/tlmm_fullscreen.rs
Normal file
11
src/criteria/tlm/tlm_matchers/tlmm_fullscreen.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
||||
|
||||
pub struct TlmMatchFullscreen(pub bool);
|
||||
|
||||
fixed_root_criterion!(TlmMatchFullscreen, fullscreen);
|
||||
|
||||
impl CritFixedRootCriterion<ToplevelData> for TlmMatchFullscreen {
|
||||
fn matches(&self, data: &ToplevelData) -> bool {
|
||||
data.is_fullscreen.get()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue