Unify behavior of resizable across platforms

This makes X11 and Wayland follow Windows and macOS, so the size of the
window could be set even though it has resizable attribute set to false.

Fixes #2242.
This commit is contained in:
Kirill Chibisov 2022-04-24 23:35:18 +03:00 committed by GitHub
parent cbba00d360
commit ce890c3455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 5 deletions

View file

@ -665,8 +665,9 @@ impl Window {
/// Sets whether the window is resizable or not.
///
/// Note that making the window unresizable doesn't exempt you from handling `Resized`, as that event can still be
/// triggered by DPI scaling, entering fullscreen mode, etc.
/// Note that making the window unresizable doesn't exempt you from handling `Resized`, as that
/// event can still be triggered by DPI scaling, entering fullscreen mode, etc. Also, the
/// window could still be resized by calling `[Window::set_inner_size]`.
///
/// ## Platform-specific
///