explorer: Create desktop window hidden and only show it if it wins the race.
This commit is contained in:
parent
d53a55ea88
commit
7eec5ad781
|
@ -302,7 +302,7 @@ void manage_desktop( WCHAR *arg )
|
|||
|
||||
/* create the desktop window */
|
||||
hwnd = CreateWindowExW( 0, DESKTOP_CLASS_ATOM, NULL,
|
||||
WS_POPUP | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
|
||||
WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
|
||||
GetSystemMetrics(SM_XVIRTUALSCREEN), GetSystemMetrics(SM_YVIRTUALSCREEN),
|
||||
GetSystemMetrics(SM_CXVIRTUALSCREEN), GetSystemMetrics(SM_CYVIRTUALSCREEN),
|
||||
0, 0, 0, NULL );
|
||||
|
@ -321,6 +321,7 @@ void manage_desktop( WCHAR *arg )
|
|||
SetWindowLongPtrW( hwnd, GWLP_WNDPROC, (LONG_PTR)desktop_wnd_proc );
|
||||
SendMessageW( hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIconW( 0, MAKEINTRESOURCEW(OIC_WINLOGO)));
|
||||
if (name) set_desktop_window_title( hwnd, name );
|
||||
ShowWindow( hwnd, SW_SHOW );
|
||||
SystemParametersInfoW( SPI_SETDESKWALLPAPER, 0, NULL, FALSE );
|
||||
ClipCursor( NULL );
|
||||
initialize_display_settings( hwnd );
|
||||
|
|
Loading…
Reference in New Issue