about summary refs log tree commit diff
path: root/config.def.h
diff options
context:
space:
mode:
authorAlexander Sedov <alex0player@gmail.com>2013-03-30 00:31:23 +0400
committerChristoph Lohmann <20h@r-36.net>2013-03-30 06:49:57 +0100
commite0e4a844f76311f4bfed542d34459dcfc68f9ddf (patch)
treefddfe17c925c87b41b9e0e26c7ce2584060482b1 /config.def.h
parentFixed SETPROP() macro behaviour in config.def.h to handle escapes correctly. (diff)
downloadsurf-e0e4a844f76311f4bfed542d34459dcfc68f9ddf.tar.gz
surf-e0e4a844f76311f4bfed542d34459dcfc68f9ddf.tar.bz2
surf-e0e4a844f76311f4bfed542d34459dcfc68f9ddf.zip
A typo in SETPROP macro: should be ``printf %b'', not ``printf''.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 3ddfaf8..ed8fbbe 100644
--- a/config.def.h
+++ b/config.def.h
@@ -23,7 +23,7 @@ static Bool hidebackground  = FALSE;
 
 #define SETPROP(p, q) { \
 	.v = (char *[]){ "/bin/sh", "-c", \
-		"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | xargs -0 printf | dmenu`\" &&" \
+		"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | xargs -0 printf %b | dmenu`\" &&" \
 		"xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
 		p, q, winid, NULL \
 	} \