winex11.drv: Avoid copying window bits if the window didn't move.
This commit is contained in:
parent
9c951e7520
commit
c912af04de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue