Browse Source

disable resize for None decorations

pull/12257/head
Emmanuel Hansen 3 years ago
parent
commit
1206996c83
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

2
src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

@ -59,7 +59,7 @@ namespace Avalonia.Win32
case WindowsMessage.WM_NCCALCSIZE:
{
if (ToInt32(wParam) == 1 && _isClientAreaExtended)
if (ToInt32(wParam) == 1 && _windowProperties.Decorations == SystemDecorations.None || _isClientAreaExtended)
{
return IntPtr.Zero;
}

Loading…
Cancel
Save