From d275b350ad720a5d95fcfebd5a713e13ea59199f Mon Sep 17 00:00:00 2001 From: nmagni Date: Tue, 3 May 2022 14:13:19 +0200 Subject: [PATCH] #345 fix refresh when moving floating windows --- .../AvalonDock/Controls/Shell/WindowChromeWorker.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/Components/AvalonDock/Controls/Shell/WindowChromeWorker.cs b/source/Components/AvalonDock/Controls/Shell/WindowChromeWorker.cs index 3ae22dda..a13d593f 100644 --- a/source/Components/AvalonDock/Controls/Shell/WindowChromeWorker.cs +++ b/source/Components/AvalonDock/Controls/Shell/WindowChromeWorker.cs @@ -418,13 +418,6 @@ private IntPtr _HandleNCCalcSize(WM uMsg, IntPtr wParam, IntPtr lParam, out bool // Since we always want the client size to equal the window size, we can unconditionally handle it // without having to modify the parameters. handled = true; - if (wParam != IntPtr.Zero) - { - var client = (RECT)Marshal.PtrToStructure(lParam, typeof(RECT)); - client.Bottom++; - Marshal.StructureToPtr(client, lParam, false); - return IntPtr.Zero; - } return new IntPtr((int)WVR.REDRAW); }