mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11: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:
parent
fbd3918d3a
commit
037d4121a1
|
@ -4,6 +4,7 @@
|
||||||
- On Windows, fix alt-tab behaviour by removing borderless fullscreen "always on top" flag.
|
- On Windows, fix alt-tab behaviour by removing borderless fullscreen "always on top" flag.
|
||||||
- On Windows, fix bug preventing windows with transparency enabled from having fully-opaque regions.
|
- On Windows, fix bug preventing windows with transparency enabled from having fully-opaque regions.
|
||||||
- **Breaking:** On Windows, include prefix byte in scancodes.
|
- **Breaking:** On Windows, include prefix byte in scancodes.
|
||||||
|
- On Wayland, fix window not being resizeable when using `with_min_inner_size` in `WindowBuilder`.
|
||||||
|
|
||||||
# 0.23.0 (2020-10-02)
|
# 0.23.0 (2020-10-02)
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ impl Window {
|
||||||
|
|
||||||
// Max dimensions.
|
// Max dimensions.
|
||||||
let max_size = attributes
|
let max_size = attributes
|
||||||
.min_inner_size
|
.max_inner_size
|
||||||
.map(|size| size.to_logical::<f64>(scale_factor as f64).into());
|
.map(|size| size.to_logical::<f64>(scale_factor as f64).into());
|
||||||
window.set_max_size(max_size);
|
window.set_max_size(max_size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue