Skip to content

Commit 0197c4f

Browse files
committed
[NtUser] Fix maximizing to window edge
Cover up the edge of the frame while maximizing the window to desktop. Fixes CORE-15893.
1 parent 75a7cf8 commit 0197c4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

win32ss/user/ntuser/winpos.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,10 @@ co_WinPosGetMinMaxInfo(PWND Window, POINT* MaxSize, POINT* MaxPos,
958958

959959
adjust = IntGetWindowBorders(adjustedStyle, exstyle);
960960

961+
// Handle special case while maximized. CORE-15893
962+
if ((adjustedStyle & WS_THICKFRAME) && !(adjustedStyle & WS_CHILD) && !(adjustedStyle & WS_MINIMIZE))
963+
adjust += 2;
964+
961965
xinc = yinc = adjust;
962966

963967
if ((adjustedStyle & WS_THICKFRAME) && (adjustedStyle & WS_CHILD) && !(adjustedStyle & WS_MINIMIZE))

0 commit comments

Comments
 (0)