diff options
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 2631dd72..ff355615 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -862,10 +862,7 @@ impl<W: LayoutElement> Layout<W> { activate: ActivateWindow, ) -> Option<&Output> { let resolved_width = self.resolve_default_width(&window, width, is_floating); - let resolved_height = height.map(|h| match h { - PresetSize::Proportion(prop) => SizeChange::SetProportion(prop * 100.), - PresetSize::Fixed(fixed) => SizeChange::SetFixed(fixed), - }); + let resolved_height = height.map(SizeChange::from); let id = window.id().clone(); match &mut self.monitor_set { |
