1
0
Fork 0
forked from wry/wry

head-management: move min/max scale to compositor

This commit is contained in:
Julian Orth 2026-03-07 14:05:58 +01:00
parent 1f42bfde3c
commit ba6943b77f
2 changed files with 4 additions and 3 deletions

View file

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

View file

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