mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
In SWP_DoNCCalcSize() when determining whether the client area has
moved, use the client coordinates as they are: not relative to its window coordinates.
This commit is contained in:
parent
2bf380c72f
commit
354f9826b8
1 changed files with 2 additions and 7 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue