surf

Surf web browser.
git clone git://r-36.net/surf
Log | Files | Refs | README | LICENSE

commit 57aa18d8b03c19e0ccfdf2a0579dce3ff9beefb5
parent 0bf2efbd2b12bd7ac7e2cf90867f59ebdaee8e6b
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat,  6 May 2017 07:53:54 +0200

Fix xprop parsing to support UTF8_STRING atoms.

Diffstat:
config.def.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -111,7 +111,7 @@ static HttpHeader customheaders[] = { #define SETPROP(p, q, prompt) { \ .v = (char *[]){ "/bin/sh", "-c", \ "prop=\"`xprop -id $2 $0 " \ - "| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \ + "| sed \"s/^$0([A-Z0-9_]*) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \ "| xargs -0 printf %b | dmenu -p \"$3\"`\" &&" \ "xprop -id $2 -f $1 8u -set $1 \"$prop\"", \ p, q, winid, prompt, NULL \ @@ -125,7 +125,7 @@ static HttpHeader customheaders[] = { #define SETPROPFROMFILE(p, q, prompt, file) { \ .v = (char *[]){ "/bin/bash", "-c", \ "prop=\"`{ xprop -id $2 $0 " \ - "| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \ + "| sed \"s/^$0([0-9A-Z_]*) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \ "| xargs -0 printf %b; " \ " [ -e $(eval echo $4) ] && cat $(eval echo $4); } " \ "| dmenu -p \"$3\"`\" &&" \