From: Rémi Bernon rbernon@codeweavers.com
--- dlls/winex11.drv/window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 92a96fd70cc..13434a93d31 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -2345,9 +2345,7 @@ Window create_client_window( HWND hwnd, RECT client_rect, const XVisualInfo *vis
if (!data) { - /* explicitly create data for HWND_MESSAGE windows since they can be used for OpenGL */ - HWND parent = NtUserGetAncestor( hwnd, GA_PARENT ); - if (parent == NtUserGetDesktopWindow() || NtUserGetAncestor( parent, GA_PARENT )) return 0; + /* explicitly create data for HWND_MESSAGE and foreign windows since they can be used for OpenGL */ if (!(data = alloc_win_data( thread_init_display(), hwnd ))) return 0; data->rects.window = data->rects.visible = data->rects.client = client_rect; }