tconfig.h: fix SETPROP macro - surf - [fork] customized build of surf, the suckless webkit browser
(HTM) git clone git://src.adamsgaard.dk/surf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bcfb784b620e9953f94a47ebb88e5ab61a5d3177
(DIR) parent 02f181784d4670699f160dda4dc373bfb6460c88
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
(DIR) diff --git a/config.h b/config.h
t@@ -73,10 +73,10 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
#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 \
} \
}