user32: Always update the visible region for cross-process DCEs.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-07-24 17:04:35 +02:00
parent d0e8170c90
commit e7f30014c3
1 changed files with 3 additions and 0 deletions

View File

@ -1111,6 +1111,9 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
dce->hwnd = hwnd;
dce->flags = (dce->flags & ~user_flags) | (flags & user_flags);
/* cross-process invalidation is not supported yet, so always update the vis rgn */
if (!WIN_IsCurrentProcess( hwnd )) bUpdateVisRgn = TRUE;
if (SetHookFlags( dce->hdc, DCHF_VALIDATEVISRGN )) bUpdateVisRgn = TRUE; /* DC was dirty */
if (bUpdateVisRgn) update_visible_region( dce );