From 25367717f96868cc4d43fedb5a1bf5ed3f7061a0 Mon Sep 17 00:00:00 2001 From: Francesca Frangipane Date: Fri, 22 Jun 2018 09:47:57 -0400 Subject: [PATCH] Wayland: Fix window creation min/max --- src/platform/linux/wayland/window.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/platform/linux/wayland/window.rs b/src/platform/linux/wayland/window.rs index 2cbe31e27d..f1ad26dff6 100644 --- a/src/platform/linux/wayland/window.rs +++ b/src/platform/linux/wayland/window.rs @@ -129,9 +129,8 @@ impl Window { frame.set_decorate(attributes.decorations); // min-max dimensions - // TODO: Update for new DPI API - //frame.set_min_size(attributes.min_dimensions); - //frame.set_max_size(attributes.max_dimensions); + frame.set_min_size(attributes.min_dimensions.map(Into::into)); + frame.set_max_size(attributes.max_dimensions.map(Into::into)); let kill_switch = Arc::new(Mutex::new(false)); let need_frame_refresh = Arc::new(Mutex::new(true));