>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
(transplanted from c24c1b6787cac93c80689d4fff21fd6930388a20)
src/superfluous.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
# HG changeset patch
# User Alexey Voinov <[email protected]>
# Date 1187091120 -14400
# Branch wm_0_92
# Node ID 7c149e542af60dfc5813ebd198e7ce7ba57d2a8c
# Parent a522b1c3bd648c0a49009dd39d902d03c4e23975
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
(transplanted from c24c1b6787cac93c80689d4fff21fd6930388a20)
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;