changing SETPROP()-macro

This commit is contained in:
Enno Boland (tox) 2009-10-30 13:38:14 +01:00
parent c30a95c635
commit c00ee3eb78
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ static char *dldir = ".surf/dl";
static time_t sessiontime = 3600; static time_t sessiontime = 3600;
#define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \ #define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \
"xprop -id $1 -f $0 8s -set $0 \"`echo -n | dmenu || exit 0`\"", \ "prop=\"`dmenu < /dev/null`\" &&" \
"xprop -id $1 -f $0 8s -set $0 \"$prop\"", \
p, winid, NULL } } p, winid, NULL } }
#define MODKEY GDK_CONTROL_MASK #define MODKEY GDK_CONTROL_MASK
static Key keys[] = { static Key keys[] = {