winex11: Clip out children window when repainting the desktop.
authorAlexandre Julliard <julliard@winehq.org>
Tue, 18 Mar 2008 11:42:25 +0000 (12:42 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 18 Mar 2008 11:42:25 +0000 (12:42 +0100)
dlls/winex11.drv/window.c

index 2d944558f4b04b3cfd1af9bf2ffccb4522782eca..4802add1afbf112177a4f6b9da6dbb89611d7cb7 100644 (file)
@@ -1532,6 +1532,7 @@ void X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
         escape.fbconfig_id = data ? data->fbconfig_id : (XID)GetPropA( hwnd, fbconfig_id_prop );
         escape.gl_drawable = data ? data->gl_drawable : (Drawable)GetPropA( hwnd, gl_drawable_prop );
         escape.pixmap      = data ? data->pixmap : (Pixmap)GetPropA( hwnd, pixmap_prop );
+        if (flags & DCX_CLIPCHILDREN) escape.mode = ClipByChildren;
     }
 
     escape.dc_rect.left         = win_rect->left - top_rect->left;