summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpancake <unknown>2011-03-31 12:52:35 +0200
committerpancake <unknown>2011-03-31 12:52:35 +0200
commit62f54a3745f193223def1c14a19a8581af1c00ed (patch)
tree2f42af32ef1560b5e83a8d0c0d1cc15830cf772f
parentf1299dcfc1608018644ce07bf0a8cc2089e9960d (diff)
downloadsurf-62f54a3745f193223def1c14a19a8581af1c00ed.tar.gz
surf-62f54a3745f193223def1c14a19a8581af1c00ed.tar.bz2
surf-62f54a3745f193223def1c14a19a8581af1c00ed.zip
rename NOBACKGROUND to HIDE_BACKGROUND and use TRUE/FALSE instead of 0/1
-rw-r--r--config.def.h2
-rw-r--r--surf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 3b64d75..bea744c 100644
--- a/config.def.h
+++ b/config.def.h
@@ -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`\" &&" \
diff --git a/surf.c b/surf.c
index 79ca9c9..6dc32ea 100644
--- a/surf.c
+++ b/surf.c
@@ -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;