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

This commit is contained in:
Alexandre Julliard 2011-04-22 12:16:33 +02:00
parent 2e61684c51
commit d2ff461615
1 changed files with 3 additions and 0 deletions

View File

@ -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 ); escape.drawable = data ? data->whole_window : X11DRV_get_whole_window( hwnd );
else else
escape.drawable = escape.gl_drawable; 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 else
{ {