changeset 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 e60713655350
children 7569347560ed
files src/win32/MinimizeToTray.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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);
-
 }