winex11.drv: Avoid copying window bits if the window didn't move.

This commit is contained in:
Dmitry Timoshkov 2010-09-14 14:22:56 +09:00 committed by Alexandre Julliard
parent 9c951e7520
commit c912af04de
1 changed files with 1 additions and 1 deletions

View File

@ -2339,7 +2339,7 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
!memcmp( &valid_rects[0], &data->client_rect, sizeof(RECT) ))
{
/* if we have an X window the bits will be moved by the X server */
if (!data->whole_window)
if (!data->whole_window && (x_offset != 0 || y_offset != 0))
move_window_bits( data, &old_whole_rect, &data->whole_rect, &old_client_rect );
}
else