From 315a7cf1a8a4a789e68405354838b438019f6354 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Sun, 6 Mar 2022 16:43:27 +0000 Subject: [PATCH] fix non-resizable window dragging with IsExtendedToClientDecorations. --- src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs b/src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs index 8a340aac5e..b97199d4de 100644 --- a/src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs +++ b/src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs @@ -23,7 +23,7 @@ namespace Avalonia.Win32 AdjustWindowRectEx(ref rcFrame, (uint)(WindowStyles.WS_OVERLAPPEDWINDOW & ~WindowStyles.WS_CAPTION), false, 0); var borderThickness = new RECT(); - if (GetStyle().HasAllFlags(WindowStyles.WS_THICKFRAME)) + if (GetStyle().HasAllFlags(WindowStyles.WS_THICKFRAME) || _isClientAreaExtended) { AdjustWindowRectEx(ref borderThickness, (uint)(GetStyle()), false, 0); borderThickness.left *= -1;