user32: Hide the icon title when hiding a window.
This commit is contained in:
parent
936ab3a644
commit
c0e10d2b97
|
@ -721,10 +721,9 @@ BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
|
|||
|
||||
TRACE("%p %i\n", hwnd, (bShow != 0) );
|
||||
|
||||
if( !title )
|
||||
lpPos->hwndIconTitle = title = ICONTITLE_Create( hwnd );
|
||||
if( bShow )
|
||||
{
|
||||
if (!title) lpPos->hwndIconTitle = title = ICONTITLE_Create( hwnd );
|
||||
if (!IsWindowVisible(title))
|
||||
{
|
||||
SendMessageW( title, WM_SHOWWINDOW, TRUE, 0 );
|
||||
|
@ -732,7 +731,7 @@ BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
|
|||
SWP_NOACTIVATE | SWP_NOZORDER | SWP_SHOWWINDOW );
|
||||
}
|
||||
}
|
||||
else ShowWindow( title, SW_HIDE );
|
||||
else if (title) ShowWindow( title, SW_HIDE );
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1130,6 +1129,8 @@ static BOOL show_window( HWND hwnd, INT cmd )
|
|||
{
|
||||
HWND hFocus;
|
||||
|
||||
WINPOS_ShowIconTitle( hwnd, FALSE );
|
||||
|
||||
/* FIXME: This will cause the window to be activated irrespective
|
||||
* of whether it is owned by the same thread. Has to be done
|
||||
* asynchronously.
|
||||
|
|
Loading…
Reference in New Issue