head-management: move min/max scale to compositor
This commit is contained in:
parent
1f42bfde3c
commit
ba6943b77f
2 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue