Commit d530e548 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

WM_WINDOWPOSCHANGED should always contain a final window position.

parent e8d86b7c
......@@ -1027,8 +1027,16 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
TRACE("\tstatus flags = %04x\n", winpos->flags & SWP_AGG_STATUSFLAGS);
if (((winpos->flags & SWP_AGG_STATUSFLAGS) != SWP_AGG_NOPOSCHANGE))
SendMessageA( winpos->hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)winpos );
/* WM_WINDOWPOSCHANGED is send even if SWP_NOSENDCHANGING is set */
{
/* WM_WINDOWPOSCHANGED is sent even if SWP_NOSENDCHANGING is set
and always contains final window position.
*/
winpos->x = newWindowRect.left;
winpos->y = newWindowRect.top;
winpos->cx = newWindowRect.right - newWindowRect.left;
winpos->cy = newWindowRect.bottom - newWindowRect.top;
SendMessageW( winpos->hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)winpos );
}
return TRUE;
}
......
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