https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0197c4f875d3332dbc465…
commit 0197c4f875d3332dbc4656a6360e3c7e9def2ed5
Author: jimtabor <james.tabor(a)reactos.org>
AuthorDate: Wed Mar 27 17:39:04 2019 -0500
Commit: jimtabor <james.tabor(a)reactos.org>
CommitDate: Wed Mar 27 17:39:04 2019 -0500
[NtUser] Fix maximizing to window edge
Cover up the edge of the frame while maximizing the window to desktop.
Fixes CORE-15893.
---
win32ss/user/ntuser/winpos.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/win32ss/user/ntuser/winpos.c b/win32ss/user/ntuser/winpos.c
index 2083526ee3b..d7f5ad6a639 100644
--- a/win32ss/user/ntuser/winpos.c
+++ b/win32ss/user/ntuser/winpos.c
@@ -958,6 +958,10 @@ co_WinPosGetMinMaxInfo(PWND Window, POINT* MaxSize, POINT* MaxPos,
adjust = IntGetWindowBorders(adjustedStyle, exstyle);
+ // Handle special case while maximized. CORE-15893
+ if ((adjustedStyle & WS_THICKFRAME) && !(adjustedStyle & WS_CHILD)
&& !(adjustedStyle & WS_MINIMIZE))
+ adjust += 2;
+
xinc = yinc = adjust;
if ((adjustedStyle & WS_THICKFRAME) && (adjustedStyle & WS_CHILD)
&& !(adjustedStyle & WS_MINIMIZE))