Commit 33617af8 authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

server: Don't invalidate the newly exposed child region on the parent if it doesn't clip children.

This partly reverts e42eaaaf. Signed-off-by: 's avatarJinoh Kang <jinoh.kang.kr@gmail.com>
parent c310e975
......@@ -9302,8 +9302,6 @@ static void subtest_swp_paint_regions_( int line, int wrap_toplevel, LPCSTR pare
}
else
{
todo_wine_if( !EqualRect( &rect_old, &rect_new ) &&
(extest->style & WS_CLIPCHILDREN) == 0 && !is_composited )
ok( !!rgn_ok, "Parent update region shall match expected region\n" );
}
......@@ -9365,8 +9363,6 @@ static void subtest_swp_paint_regions_( int line, int wrap_toplevel, LPCSTR pare
}
else
{
todo_wine_if( !EqualRect( &rect_old, &rect_new ) &&
(extest->style & WS_CLIPCHILDREN) == 0 && !is_composited )
ok( !!rgn_ok, "Child update region shall match expected region\n" );
}
......
......@@ -1766,10 +1766,8 @@ static struct region *expose_window( struct window *win, const rectangle_t *old_
offset_region( new_vis_rgn, win->window_rect.left - old_window_rect->left,
win->window_rect.top - old_window_rect->top );
if (is_composited ? union_region( new_vis_rgn, old_vis_rgn, new_vis_rgn ) :
(win->parent->style & WS_CLIPCHILDREN) ?
subtract_region( new_vis_rgn, old_vis_rgn, new_vis_rgn ) :
xor_region( new_vis_rgn, old_vis_rgn, new_vis_rgn ))
if (is_composited ? union_region( new_vis_rgn, old_vis_rgn, new_vis_rgn )
: subtract_region( new_vis_rgn, old_vis_rgn, new_vis_rgn ))
{
if (!is_region_empty( new_vis_rgn ))
{
......
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