Skip to content

Commit

Permalink
fix(windows): remove resizable ability to affect maximizability (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jun 6, 2023
1 parent 5af3da4 commit 50e69d7
Show file tree
Hide file tree
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
Expand Up @@ -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) {
Expand Down

0 comments on commit 50e69d7

Please sign in to comment.