diff options
author | Quentin Rameau <quinq@fifth.space> | 2021-07-19 21:23:32 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2021-07-19 22:27:50 +0200 |
commit | 11dca18a2d148e5a6463aba783567a3815424963 (patch) | |
tree | 520bb6b452806a7f9f7553ceef106a01c2852774 /config.def.h | |
parent | 238d2273b50c33a1e98ad55750126f05201f911d (diff) |
Improve non-ASCII character search handling
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.h | 4 |
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 \ } \ } |