Commit 1dba866e authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Don't invalidate DCEs for sibling top-level windows since they are not clipped.

parent 8b64a2f1
...@@ -425,11 +425,11 @@ void invalidate_dce( HWND hwnd, const RECT *extra_rect ) ...@@ -425,11 +425,11 @@ void invalidate_dce( HWND hwnd, const RECT *extra_rect )
if (dce->hwnd == hwnd || IsChild( hwnd, dce->hwnd )) if (dce->hwnd == hwnd || IsChild( hwnd, dce->hwnd ))
{ {
make_dc_dirty( dce ); make_dc_dirty( dce );
continue;
} }
else /* otherwise check if the window rectangle intersects this DCE window */
{ /* otherwise check if the window rectangle intersects this DCE window */
if (hwndScope == GetDesktopWindow() || if (hwndScope == dce->hwnd || IsChild( hwndScope, dce->hwnd ))
hwndScope == dce->hwnd || IsChild( hwndScope, dce->hwnd ))
{ {
RECT dce_rect, tmp; RECT dce_rect, tmp;
GetWindowRect( dce->hwnd, &dce_rect ); GetWindowRect( dce->hwnd, &dce_rect );
...@@ -438,7 +438,6 @@ void invalidate_dce( HWND hwnd, const RECT *extra_rect ) ...@@ -438,7 +438,6 @@ void invalidate_dce( HWND hwnd, const RECT *extra_rect )
make_dc_dirty( dce ); make_dc_dirty( dce );
} }
} }
}
USER_Unlock(); USER_Unlock();
} }
......
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