Mercurial > pidgin.yaz
diff src/win32/MinimizeToTray.c @ 3957:7e384ded0d4e
[gaim-migrate @ 4139]
Checking to see if window is hidden before Minimizing to tray
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 13 Nov 2002 23:51:09 +0000 |
parents | 9682c0e022c6 |
children | 92cbf9713795 |
line wrap: on
line diff
--- a/src/win32/MinimizeToTray.c Wed Nov 13 23:49:27 2002 +0000 +++ b/src/win32/MinimizeToTray.c Wed Nov 13 23:51:09 2002 +0000 @@ -98,6 +98,8 @@ void MinimizeWndToTray(HWND hWnd) { + if(!IsWindowVisible(hWnd)) + return; if(GetDoAnimateMinimize()) { RECT rcFrom,rcTo; @@ -113,6 +115,8 @@ void RestoreWndFromTray(HWND hWnd) { + if(IsWindowVisible(hWnd)) + return; if(GetDoAnimateMinimize()) { RECT rcFrom,rcTo; @@ -125,7 +129,6 @@ ShowWindow(hWnd,SW_SHOW); SetActiveWindow(hWnd); SetForegroundWindow(hWnd); - }