From 5f5b1df7d296377b100fc5f463ef912d43677ae1 Mon Sep 17 00:00:00 2001 From: Alexey Voinov Date: Tue, 14 Aug 2007 15:32:00 +0400 Subject: [PATCH] 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 --- src/superfluous.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/superfluous.c b/src/superfluous.c index a27ebc5f..20a00a39 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -500,14 +500,13 @@ Bool InitXThing(WScreen * scr) 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)) { + if ((l->tm_mon != 11 || l->tm_mday < 24 || l->tm_mday > 26)) return False; - } + + if (i) + return True; if (!loadData(scr)) return False;