about summary refs log tree commit diff
path: root/config.def.h
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2021-07-19 21:23:32 +0200
committerQuentin Rameau <quinq@fifth.space>2021-07-19 22:27:50 +0200
commit11dca18a2d148e5a6463aba783567a3815424963 (patch)
tree520bb6b452806a7f9f7553ceef106a01c2852774 /config.def.h
parentImprove SETPROP xprop parsing (diff)
downloadsurf-webkit2.tar.gz
surf-webkit2.tar.bz2
surf-webkit2.zip
Improve non-ASCII character search handling HEAD surf-webkit2
Before, the XA_STRING would only let use ASCII characters properly.
Now UTF-8 characters should be handled correctly.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 3a417f0..1355ba3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -68,10 +68,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 \
         } \
 }