pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba452c2
)
Moving some preprocessor config options to the standard suckless style.
author
Christoph Lohmann
<20h@r-36.net>
Fri, 16 Nov 2012 09:53:30 +0000
(10:53 +0100)
committer
Christoph Lohmann
<20h@r-36.net>
Fri, 16 Nov 2012 09:53:30 +0000
(10:53 +0100)
config.def.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
5f554ff
..
0a16f3e
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-13,9
+13,8
@@
static time_t sessiontime = 3600;
static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
static int indicator_thickness = 2;
static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
static int indicator_thickness = 2;
-
-#define HIDE_BACKGROUND FALSE
-#define SPATIAL_BROWSING TRUE
+static Bool spatialbrowsing = TRUE;
+static Bool hidebackground = FALSE;
#define SETPROP(p, q) { .v = (char *[]){ "/bin/sh", "-c", \
"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
#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
13f1a3c
..
ec3bee6
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-615,13
+615,13
@@
newclient(void) {
g_object_set(G_OBJECT(settings), "auto-load-images", loadimage, NULL);
g_object_set(G_OBJECT(settings), "enable-plugins", plugin, NULL);
g_object_set(G_OBJECT(settings), "enable-scripts", script, NULL);
g_object_set(G_OBJECT(settings), "auto-load-images", loadimage, NULL);
g_object_set(G_OBJECT(settings), "enable-plugins", plugin, NULL);
g_object_set(G_OBJECT(settings), "enable-scripts", script, NULL);
- g_object_set(G_OBJECT(settings), "enable-spatial-navigation",
SPATIAL_BROWSING
, NULL);
+ g_object_set(G_OBJECT(settings), "enable-spatial-navigation",
spatialbrowsing
, NULL);
g_free(uri);
setatom(c, AtomFind, "");
setatom(c, AtomUri, "about:blank");
g_free(uri);
setatom(c, AtomFind, "");
setatom(c, AtomUri, "about:blank");
- if(
HIDE_BACKGROUND
)
+ if(
hidebackground
)
webkit_web_view_set_transparent(c->view, TRUE);
c->title = NULL;
webkit_web_view_set_transparent(c->view, TRUE);
c->title = NULL;