Re: winex11.drv: When copying window bits exclude an update region only if the parent doesn't clip its children.
Dmitry Timoshkov <dmitry(a)codeweavers.com> writes:
@@ -1624,7 +1624,8 @@ static void move_window_bits( struct x11drv_win_data *data, const RECT *old_rect hdc_src = hdc_dst = GetDCEx( data->hwnd, 0, DCX_CACHE ); }
- ExcludeUpdateRgn( hdc_dst, data->hwnd ); + if (!parent || !(GetWindowLongW( parent, GWL_STYLE ) & WS_CLIPCHILDREN)) + ExcludeUpdateRgn( hdc_dst, data->hwnd );
I don't see what the parent clipping has to do with this. Could you please explain? -- Alexandre Julliard julliard(a)winehq.org
Alexandre Julliard <julliard(a)winehq.org> wrote:
- ExcludeUpdateRgn( hdc_dst, data->hwnd ); + if (!parent || !(GetWindowLongW( parent, GWL_STYLE ) & WS_CLIPCHILDREN)) + ExcludeUpdateRgn( hdc_dst, data->hwnd );
I don't see what the parent clipping has to do with this. Could you please explain?
Additional testing shows that this change is not correct, I'll try to figure out a better one. -- Dmitry.
participants (2)
-
Alexandre Julliard -
Dmitry Timoshkov