Display counter only with new mail animation in debug mode
[dockapps/wmnotify.git] / src / wmnotify.c
index fec7d10..9646d38 100644 (file)
@@ -429,10 +429,10 @@ static void *TimerThread(void *arg)
                        NewMailAnimation();
                        (void) usleep(NEW_MAIL_ANIMATION_DURATION);
                        counter--;
-               }
 
-               if (wmnotify_infos.debug)
-                       printf("%s: counter = %d\n", PACKAGE, counter);
+                       if (wmnotify_infos.debug)
+                               printf("%s: counter = %d\n", PACKAGE, counter);
+               }
        }                       /* end while */
 
        if (wmnotify_infos.debug)