Commit 9cd1ce25 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Don't try to create the owner window if it belongs to a different thread.

parent 47016df9
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment