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:
parent
466961f2e5
commit
3cd66cf7b1
|
@ -2091,6 +2091,12 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
|
||||||
old_client_rect = win->client_rect;
|
old_client_rect = win->client_rect;
|
||||||
old_surface = win->surface;
|
old_surface = win->surface;
|
||||||
if (old_surface != new_surface) swp_flags |= SWP_FRAMECHANGED; /* force refreshing non-client area */
|
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 )
|
SERVER_START_REQ( set_window_pos )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue