Commit 354f9826 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

In SWP_DoNCCalcSize() when determining whether the client area has

moved, use the client coordinates as they are: not relative to its window coordinates.
parent 2bf380c7
......@@ -2533,14 +2533,9 @@ static UINT SWP_DoNCCalcSize( WND* wndPtr, WINDOWPOS* pWinpos,
/* FIXME: WVR_ALIGNxxx */
/* check if client area moved relative to the window */
if ( ( (wndPtr->rectClient.left - pNewClientRect->left) !=
(wndPtr->rectWindow.left - pNewWindowRect->left) ) ||
( (wndPtr->rectClient.top - pNewClientRect->top) !=
(wndPtr->rectWindow.top - pNewWindowRect->top) ) )
{
if( pNewClientRect->left != wndPtr->rectClient.left ||
pNewClientRect->top != wndPtr->rectClient.top )
pWinpos->flags &= ~SWP_NOCLIENTMOVE;
}
if( (pNewClientRect->right - pNewClientRect->left !=
wndPtr->rectClient.right - wndPtr->rectClient.left) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment