mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
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
This commit is contained in:
committed by
Carlos R. Mafra
parent
88ab8b74b4
commit
5f5b1df7d2
@@ -500,14 +500,13 @@ Bool InitXThing(WScreen * scr)
|
|||||||
struct tm *l;
|
struct tm *l;
|
||||||
static int i = 0;
|
static int i = 0;
|
||||||
|
|
||||||
if (i)
|
|
||||||
return True;
|
|
||||||
|
|
||||||
t = time(NULL);
|
t = time(NULL);
|
||||||
l = localtime(&t);
|
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;
|
return False;
|
||||||
}
|
|
||||||
|
if (i)
|
||||||
|
return True;
|
||||||
|
|
||||||
if (!loadData(scr))
|
if (!loadData(scr))
|
||||||
return False;
|
return False;
|
||||||
|
|||||||
Reference in New Issue
Block a user