rename NOBACKGROUND to HIDE_BACKGROUND and use TRUE/FALSE instead of 0/1

This commit is contained in:
pancake 2011-03-31 12:52:35 +02:00
parent f1299dcfc1
commit 62f54a3745
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ static char *stylefile = ".surf/style.css";
static char *scriptfile = ".surf/script.js";
static char *cookiefile = ".surf/cookies.txt";
static time_t sessiontime = 3600;
#define NOBACKGROUND 0
#define HIDE_BACKGROUND FALSE
#define SETPROP(p, q) { .v = (char *[]){ "/bin/sh", "-c", \
"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \

2
surf.c
View File

@ -507,7 +507,7 @@ newclient(void) {
setatom(c, AtomFind, "");
setatom(c, AtomUri, "about:blank");
if(NOBACKGROUND)
if(HIDE_BACKGROUND)
webkit_web_view_set_transparent(c->view, TRUE);
c->title = NULL;