From 9cd1ce2510536e73cb94dc99ea29a9d189288f64 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 1 Mar 2010 17:06:19 +0100 Subject: [PATCH] winex11: Don't try to create the owner window if it belongs to a different thread. --- dlls/winex11.drv/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 18475276af7..47f7245d2d0 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -1005,7 +1005,8 @@ static Window get_owner_whole_window( HWND owner ) if (!(data = X11DRV_get_win_data( owner ))) { - if (!(data = X11DRV_create_win_data( owner ))) + if (GetWindowThreadProcessId( owner, NULL ) != GetCurrentThreadId() || + !(data = X11DRV_create_win_data( owner ))) return (Window)GetPropA( owner, whole_window_prop ); } else if (!data->managed) /* make it managed */ -- 2.11.4.GIT