winex11: Don't use a window surface for embedded windows.

This commit is contained in:
Alexandre Julliard 2012-09-13 10:31:52 +02:00
parent 22bcb1a7f4
commit 0682355af2
1 changed files with 1 additions and 0 deletions

View File

@ -1992,6 +1992,7 @@ void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flag
/* create the window surface if necessary */ /* create the window surface if necessary */
if (!data->whole_window) return; if (!data->whole_window) return;
if (data->embedded) return;
if (swp_flags & SWP_HIDEWINDOW) return; if (swp_flags & SWP_HIDEWINDOW) return;
if (data->whole_window == root_window) return; if (data->whole_window == root_window) return;
if (has_gl_drawable( hwnd )) return; if (has_gl_drawable( hwnd )) return;