>From https://bugzilla.altlinux.org/show_bug.cgi?id=3480

      "If you open "Info Panel" on 25 dec (Christmas), the
       "Christmas tree" is shown. And after that on all days
        Christmas tree is shown. (Until you restart WM, i think)"

    Taken from http://git.altlinux.org/people/raorn/packages/WindowMaker.git

Transplanted from git://repo.or.cz/wmaker-crm.git
commit 5f5b1df7d296377b100fc5f463ef912d43677ae1


 src/superfluous.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


# HG changeset patch
# User Alexey Voinov <[email protected]>
# Date 1187091120 -14400
# Node ID c24c1b6787cac93c80689d4fff21fd6930388a20
# Parent  5a2507602c48324fba0f07754a442a8cc6ab967c
Christmas does not last forever

    From https://bugzilla.altlinux.org/show_bug.cgi?id=3480

      "If you open "Info Panel" on 25 dec (Christmas), the
       "Christmas tree" is shown. And after that on all days
        Christmas tree is shown. (Until you restart WM, i think)"

    Taken from http://git.altlinux.org/people/raorn/packages/WindowMaker.git

Transplanted from git://repo.or.cz/wmaker-crm.git
commit 5f5b1df7d296377b100fc5f463ef912d43677ae1

diff --git a/src/superfluous.c b/src/superfluous.c
--- a/src/superfluous.c
+++ b/src/superfluous.c
@@ -552,15 +552,15 @@
     struct tm *l;
     static int i = 0;
 
-    if (i)
-        return True;
-
     t = time(NULL);
     l = localtime(&t);
     if ((l->tm_mon!=11||l->tm_mday<24||l->tm_mday>26)) {
         return False;
     }
 
+    if (i)
+        return True;
+
     if (!loadData(scr))
         return False;
 

Reply via email to