From 9ac3bdd85f0b02504f3562c177ee6e22808b16e8 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 4 Nov 2003 04:21:42 +0000 Subject: [PATCH] WM_WINDOWPOSCHANGING should receive original, not fixed values. --- dlls/x11drv/winpos.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/x11drv/winpos.c b/dlls/x11drv/winpos.c index 5eed38acd14..6a5bcdf1fc3 100644 --- a/dlls/x11drv/winpos.c +++ b/dlls/x11drv/winpos.c @@ -894,20 +894,20 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos ) UINT wvrFlags = 0; BOOL bChangePos; - TRACE( "hwnd %p, swp (%i,%i)-(%i,%i) flags %08x\n", - winpos->hwnd, winpos->x, winpos->y, - winpos->x + winpos->cx, winpos->y + winpos->cy, winpos->flags); + TRACE( "hwnd %p, after %p, swp %d,%d %dx%d flags %08x\n", + winpos->hwnd, winpos->hwndInsertAfter, winpos->x, winpos->y, + winpos->cx, winpos->cy, winpos->flags); bChangePos = !(winpos->flags & SWP_WINE_NOHOSTMOVE); winpos->flags &= ~SWP_WINE_NOHOSTMOVE; - /* Fix redundant flags */ - if (!fixup_flags( winpos )) return FALSE; - /* Check window handle */ if (winpos->hwnd == GetDesktopWindow()) return FALSE; - SWP_DoWinPosChanging( winpos, &newWindowRect, &newClientRect ); + if (!SWP_DoWinPosChanging( winpos, &newWindowRect, &newClientRect )) return FALSE; + + /* Fix redundant flags */ + if (!fixup_flags( winpos )) return FALSE; if (!(wndPtr = WIN_FindWndPtr( winpos->hwnd ))) return FALSE;