Browse Source
do not set borders if window state is maximized (#13228)
Co-authored-by: Max Katz <maxkatz6@outlook.com>
pull/13295/head
Emmanuel Hansen
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Windows/Avalonia.Win32/WindowImpl.cs
|
|
|
@ -1348,7 +1348,7 @@ namespace Avalonia.Win32 |
|
|
|
{ |
|
|
|
style &= ~fullDecorationFlags; |
|
|
|
|
|
|
|
if (newProperties.Decorations == SystemDecorations.BorderOnly) |
|
|
|
if (newProperties.Decorations == SystemDecorations.BorderOnly && WindowState != WindowState.Maximized) |
|
|
|
{ |
|
|
|
style |= WindowStyles.WS_THICKFRAME | WindowStyles.WS_BORDER; |
|
|
|
} |
|
|
|
|