aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/niri.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 13e46b08..4817b6b0 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -1053,7 +1053,7 @@ impl State {
let resolution = output.current_mode().unwrap().size;
guess_monitor_scale(size_mm, resolution)
});
- let scale = closest_representable_scale(scale.clamp(1., 10.));
+ let scale = closest_representable_scale(scale.clamp(0.1, 10.));
let mut transform = config
.map(|c| ipc_transform_to_smithay(c.transform))
@@ -1736,7 +1736,7 @@ impl Niri {
let resolution = output.current_mode().unwrap().size;
guess_monitor_scale(size_mm, resolution)
});
- let scale = closest_representable_scale(scale.clamp(1., 10.));
+ let scale = closest_representable_scale(scale.clamp(0.1, 10.));
let mut transform = c
.map(|c| ipc_transform_to_smithay(c.transform))