Commit 0816a04d authored by Alexandre Julliard's avatar Alexandre Julliard

server: Subtract the current update region from the valid rect when a window…

server: Subtract the current update region from the valid rect when a window client area is changed.
parent e834c920
......@@ -1645,6 +1645,13 @@ static void set_window_pos( struct window *win, struct window *previous,
if (tmp)
{
set_region_rect( tmp, &valid_rects[0] );
/* subtract update region since invalid parts of the valid rect won't be copied */
if (win->update_region)
{
offset_region( tmp, -window_rect->left, -window_rect->top );
subtract_region( tmp, tmp, win->update_region );
offset_region( tmp, window_rect->left, window_rect->top );
}
if (subtract_region( tmp, win_rgn, tmp )) win_rgn = tmp;
else free_region( tmp );
}
......
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