1
0
Fork 0
forked from wry/wry

config: add fullscreen window criteria

This commit is contained in:
Julian Orth 2025-05-01 18:49:39 +02:00
parent 91c948b219
commit e36ccd560c
14 changed files with 51 additions and 3 deletions

View file

@ -19,6 +19,7 @@ macro_rules! fixed_root_criterion {
pub mod tlmm_client;
pub mod tlmm_floating;
pub mod tlmm_fullscreen;
pub mod tlmm_kind;
pub mod tlmm_seat_focus;
pub mod tlmm_string;

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