Commit c912af04 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent 9c951e75
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment