Skip to content

Commit

Permalink
Wayland: Fix window creation min/max
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca64 committed Jun 23, 2018
1 parent 45e0edf commit 2536771
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/platform/linux/wayland/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2536771

Please sign in to comment.