user32: Don't copy window bits to or from the dummy surface.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-07-04 16:07:34 +02:00
parent 466961f2e5
commit 3cd66cf7b1
1 changed files with 6 additions and 0 deletions

View File

@ -2091,6 +2091,12 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
old_client_rect = win->client_rect;
old_surface = win->surface;
if (old_surface != new_surface) swp_flags |= SWP_FRAMECHANGED; /* force refreshing non-client area */
if (new_surface == &dummy_surface) swp_flags |= SWP_NOREDRAW;
else if (old_surface == &dummy_surface)
{
swp_flags |= SWP_NOCOPYBITS;
valid_rects = NULL;
}
SERVER_START_REQ( set_window_pos )
{