Do not set cookie session time if set to 0

Add NOBACKGROUND config.def.h option
 - requires body {background-color} in style.css
 - fixes white background when loading pages
This commit is contained in:
pancake
2010-05-08 21:43:53 +02:00
parent e9c9715f52
commit 11039e5e2b
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ static char *stylefile = ".surf/style.css";
static char *scriptfile = ".surf/script.js";
static char *cookiefile = ".surf/cookies.txt";
static char *dldir = ".surf/dl/";
static time_t sessiontime = 3600;
static time_t sessiontime = 0;
#define NOBACKGROUND 0
#define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \
"prop=\"`xprop -id $1 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \