mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
On Wayland, fix 'with_min_inner_size' disabling resize
Building window with 'set_min_inner_size' was setting 'max_inner_size' under the hood, thus completely disabling window resize, since the window isn't resizeable on Wayland when its minimum size is equal to its maximum size.
This commit is contained in:
@@ -145,7 +145,7 @@ impl Window {
|
||||
|
||||
// Max dimensions.
|
||||
let max_size = attributes
|
||||
.min_inner_size
|
||||
.max_inner_size
|
||||
.map(|size| size.to_logical::<f64>(scale_factor as f64).into());
|
||||
window.set_max_size(max_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user