Commit 8b5bdb10 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Call SetDesktopWindow when desktop window is successfully created.

When the default desktop window is created, its parent is always NULL, and SetDesktopWindow is never called here.
parent 15dfe2ed
......@@ -4950,10 +4950,10 @@ static WND *create_window_handle( HWND parent, HWND owner, UNICODE_STRING *name,
if (name->Buffer == (const WCHAR *)DESKTOP_CLASS_ATOM)
{
if (!thread_info->top_window)
thread_info->top_window = HandleToUlong( full_parent ? full_parent : handle );
if (!thread_info->top_window) thread_info->top_window = HandleToUlong( full_parent ? full_parent : handle );
else assert( full_parent == UlongToHandle( thread_info->top_window ));
if (full_parent) user_driver->pSetDesktopWindow( UlongToHandle( thread_info->top_window ));
if (!thread_info->top_window) ERR_(win)( "failed to create desktop window\n" );
else user_driver->pSetDesktopWindow( UlongToHandle( thread_info->top_window ));
register_builtin_classes();
}
else /* HWND_MESSAGE parent */
......
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