Module: wine Branch: master Commit: ad0e82e136c0505a67d730a5d2784b8eb83fa2bf URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad0e82e136c0505a67d730a5d2...
Author: Alexandre Julliard julliard@winehq.org Date: Mon May 12 13:37:49 2008 +0200
user32: Invalidate the DCE in SetWindowPos before we attempt to move the window bits.
---
dlls/user32/winpos.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index b325384..916cac5 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -1904,12 +1904,13 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
if (ret) { - USER_Driver->pSetWindowPos( hwnd, insert_after, swp_flags, window_rect, - client_rect, &visible_rect, valid_rects ); - + /* FIXME: should update visible rect before invalidating DCE */ if (((swp_flags & SWP_AGG_NOPOSCHANGE) != SWP_AGG_NOPOSCHANGE) || (swp_flags & (SWP_HIDEWINDOW | SWP_SHOWWINDOW | SWP_STATECHANGED))) invalidate_dce( hwnd, &old_window_rect ); + + USER_Driver->pSetWindowPos( hwnd, insert_after, swp_flags, window_rect, + client_rect, &visible_rect, valid_rects ); } return ret; }