Skip to content

Commit

Permalink
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/windows-maximized-resizable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": "patch"
---

On Windows, fix disabling `resizable` also disabling maximize button and messing up `Window::set_maximized`.
2 changes: 1 addition & 1 deletion src/platform_impl/windows/window_state.rs
Original file line number Diff line number Diff line change
@@ -233,7 +233,7 @@ impl WindowFlags {
if self.contains(WindowFlags::RESIZABLE) {
style |= WS_SIZEBOX;
}
if self.contains(WindowFlags::RESIZABLE | WindowFlags::MAXIMIZABLE) {
if self.contains(WindowFlags::MAXIMIZABLE) {
style |= WS_MAXIMIZEBOX;
}
if self.contains(WindowFlags::MINIMIZABLE) {

0 comments on commit 50e69d7

Please sign in to comment.