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:
parent
cbba00d360
commit
ce890c3455
5 changed files with 28 additions and 5 deletions
|
|
@ -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
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue