Commit 1f170510 authored by Alexandre Julliard's avatar Alexandre Julliard

Revert "user32: SetWindowPos() should check the final window position in screen…

Revert "user32: SetWindowPos() should check the final window position in screen coords before adding SWP_NOMOVE." This reverts commit 38a76ecb. It has no effect, the coordinates are identical either way. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 540c48b9
......@@ -1924,7 +1924,6 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
{
HWND parent;
RECT window_rect;
POINT pt;
WND *wndPtr = WIN_GetPtr( winpos->hwnd );
BOOL ret = TRUE;
......@@ -1956,15 +1955,12 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
if (!(winpos->flags & SWP_SHOWWINDOW)) winpos->flags |= SWP_NOREDRAW;
}
WIN_GetRectangles( winpos->hwnd, COORDS_SCREEN, &window_rect, NULL );
WIN_GetRectangles( winpos->hwnd, COORDS_PARENT, &window_rect, NULL );
if ((window_rect.right - window_rect.left == winpos->cx) &&
(window_rect.bottom - window_rect.top == winpos->cy))
winpos->flags |= SWP_NOSIZE; /* Already the right size */
pt.x = winpos->x;
pt.y = winpos->y;
ClientToScreen( parent, &pt );
if ((window_rect.left == pt.x) && (window_rect.top == pt.y))
if ((window_rect.left == winpos->x) && (window_rect.top == winpos->y))
winpos->flags |= SWP_NOMOVE; /* Already the right position */
if ((wndPtr->dwStyle & (WS_POPUP | WS_CHILD)) != WS_CHILD)
......
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