diff --git a/samples/ControlCatalog/DecoratedWindow.xaml.cs b/samples/ControlCatalog/DecoratedWindow.xaml.cs index c97b157040..eccfaca60f 100644 --- a/samples/ControlCatalog/DecoratedWindow.xaml.cs +++ b/samples/ControlCatalog/DecoratedWindow.xaml.cs @@ -19,7 +19,8 @@ namespace ControlCatalog ctl.Cursor = new Cursor(cursor); ctl.PointerPressed += (i, e) => { - BeginResizeDrag(edge, e); + if (WindowState == WindowState.Normal) + BeginResizeDrag(edge, e); }; } diff --git a/src/Windows/Avalonia.Win32/WindowImpl.cs b/src/Windows/Avalonia.Win32/WindowImpl.cs index 1318ef721f..769a8d6768 100644 --- a/src/Windows/Avalonia.Win32/WindowImpl.cs +++ b/src/Windows/Avalonia.Win32/WindowImpl.cs @@ -1484,7 +1484,7 @@ namespace Avalonia.Win32 else style &= ~WindowStyles.WS_MAXIMIZEBOX; - const WindowStyles fullDecorationFlags = WindowStyles.WS_CAPTION | WindowStyles.WS_BORDER; + const WindowStyles fullDecorationFlags = WindowStyles.WS_CAPTION | WindowStyles.WS_BORDER | WindowStyles.WS_SYSMENU; if (newProperties.Decorations == SystemDecorations.Full) {