tconfig.h: fix SETPROP macro - surf - [fork] customized build of surf, the suck… | |
git clone git://src.adamsgaard.dk/surf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit bcfb784b620e9953f94a47ebb88e5ab61a5d3177 | |
parent 02f181784d4670699f160dda4dc373bfb6460c88 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 8 Apr 2022 11:21:26 +0200 | |
config.h: fix SETPROP macro | |
Diffstat: | |
M config.h | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/config.h b/config.h | |
t@@ -73,10 +73,10 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CA… | |
#define SETPROP(r, s, p) { \ | |
.v = (const char *[]){ "/bin/sh", "-c", \ | |
"prop=\"$(printf '%b' \"$(xprop -id $1 "r" " \ | |
- "| sed -e 's/^"r"(STRING) = \"\\(.*\\)\"/\\1/' " \ | |
+ "| sed -e 's/^"r"(UTF8_STRING) = \"\\(.*\\)\"/\\1/' " \ | |
" -e 's/\\\\\\(.\\)/\\1/g')\" " \ | |
"| dmenu -p '"p"' -w $1)\" " \ | |
- "&& xprop -id $1 -f "s" 8s -set "s" \"$prop\"", \ | |
+ "&& xprop -id $1 -f "s" 8u -set "s" \"$prop\"", \ | |
"surf-setprop", winid, NULL \ | |
} \ | |
} |