user32: Don't show the icon title for off-screen icons.

This commit is contained in:
Alexandre Julliard 2012-10-15 16:17:46 +02:00
parent 0bc93684f0
commit 49a5db3869
1 changed files with 34 additions and 33 deletions

View File

@ -660,20 +660,23 @@ BOOL WINPOS_RedrawIconTitle( HWND hWnd )
/***********************************************************************
* WINPOS_ShowIconTitle
*/
static BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
static void WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
{
if (!GetPropA( hwnd, "__wine_x11_managed" ))
{
WND *win = WIN_GetPtr( hwnd );
HWND title = 0;
TRACE("%p %i\n", hwnd, (bShow != 0) );
if (!win || win == WND_OTHER_PROCESS || win == WND_DESKTOP) return FALSE;
title = win->icon_title;
if (!win || win == WND_OTHER_PROCESS || win == WND_DESKTOP) return;
if (win->rectWindow.left == -32000 || win->rectWindow.top == -32000)
{
TRACE( "not showing title for hidden icon %p\n", hwnd );
bShow = FALSE;
}
else title = win->icon_title;
WIN_ReleasePtr( win );
if( bShow )
if (bShow)
{
if (!title)
{
@ -681,7 +684,7 @@ static BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
if (!(win = WIN_GetPtr( hwnd )) || win == WND_OTHER_PROCESS)
{
DestroyWindow( title );
return FALSE;
return;
}
win->icon_title = title;
WIN_ReleasePtr( win );
@ -694,8 +697,6 @@ static BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
}
}
else if (title) ShowWindow( title, SW_HIDE );
}
return FALSE;
}
/*******************************************************************