Skip to content
Snippets Groups Projects
Commit d2ff4616 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

winex11: Clip out the top-level windows when repainting the desktop.

parent 2e61684c
Branches
Tags
No related merge requests found
......@@ -2280,6 +2280,9 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
escape.drawable = data ? data->whole_window : X11DRV_get_whole_window( hwnd );
else
escape.drawable = escape.gl_drawable;
/* special case: when repainting the root window, clip out top-level windows */
if (data && data->whole_window == root_window) escape.mode = ClipByChildren;
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment