diff --git a/src/compositor.rs b/src/compositor.rs index 3f74088c..332fb92a 100644 --- a/src/compositor.rs +++ b/src/compositor.rs @@ -105,6 +105,9 @@ use { pub const MAX_EXTENTS: i32 = (1 << 22) - 1; +pub const MIN_SCALE: Scale = Scale::from_wl(60); +pub const MAX_SCALE: Scale = Scale::from_int(16); + pub fn start_compositor(global: GlobalArgs, args: RunArgs) { sighand::reset_all(); let reaper_pid = ensure_reaper(); diff --git a/src/ifs/head_management/jay_head_ext/jay_head_ext_compositor_space_scaler_v1.rs b/src/ifs/head_management/jay_head_ext/jay_head_ext_compositor_space_scaler_v1.rs index 6ac99aa9..099c04ad 100644 --- a/src/ifs/head_management/jay_head_ext/jay_head_ext_compositor_space_scaler_v1.rs +++ b/src/ifs/head_management/jay_head_ext/jay_head_ext_compositor_space_scaler_v1.rs @@ -1,5 +1,6 @@ use { crate::{ + compositor::{MAX_SCALE, MIN_SCALE}, ifs::head_management::{HeadOp, HeadState}, scale::Scale, wire::{ @@ -17,9 +18,6 @@ impl_compositor_space_scaler_v1! { after_announce = after_announce, } -const MIN_SCALE: Scale = Scale::from_wl(60); -const MAX_SCALE: Scale = Scale::from_int(16); - impl HeadName { fn after_announce(&self, _shared: &HeadState) { self.send_range(MIN_SCALE, MAX_SCALE);