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
parent
commit
43f1b9d8ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

2
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;
}

Loading…
Cancel
Save