[hackers] [surf] rename NOBACKGROUND to HIDE_BACKGROUND and use TRUE/FALSE instead of 0/1 || pancake

From: <hg_AT_suckless.org>
Date: Thu, 31 Mar 2011 10:48:01 +0000 (UTC)

changeset: 224:2533f186089d
tag: tip
user: pancake
date: Thu Mar 31 12:52:35 2011 +0200
files: config.def.h surf.c
description:
rename NOBACKGROUND to HIDE_BACKGROUND and use TRUE/FALSE instead of 0/1

diff -r 7a931a352cf9 -r 2533f186089d config.def.h
--- a/config.def.h Thu Sep 09 11:15:02 2010 +0200
+++ b/config.def.h Thu Mar 31 12:52:35 2011 +0200
@@ -6,7 +6,7 @@
 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 -r 7a931a352cf9 -r 2533f186089d surf.c
--- a/surf.c Thu Sep 09 11:15:02 2010 +0200
+++ b/surf.c Thu Mar 31 12:52:35 2011 +0200
@@ -507,7 +507,7 @@
 
         setatom(c, AtomFind, "");
         setatom(c, AtomUri, "about:blank");
- if(NOBACKGROUND)
+ if(HIDE_BACKGROUND)
                 webkit_web_view_set_transparent(c->view, TRUE);
 
         c->title = NULL;
Received on Thu Mar 31 2011 - 12:48:01 CEST

This archive was generated by hypermail 2.2.0 : Thu Mar 31 2011 - 13:00:07 CEST