surf

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

commit 3276d6ebcf08c4c0ad73d7fb37a2f018e0eb3d1c
parent 70b1126a710fd0fff9cc9c63ba81645e2ac21eae
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed, 19 Apr 2017 22:32:19 +0200

UTF-8 for dmenu actions.

Diffstat:
config.def.h | 2+-
surf.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -52,7 +52,7 @@ static HttpHeader customheaders[] = { "prop=\"`xprop -id $2 $0 " \ "| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \ "| xargs -0 printf %b | dmenu -p \"$3\"`\" &&" \ - "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \ + "xprop -id $2 -f $1 8u -set $1 \"$prop\"", \ p, q, winid, prompt, NULL \ } \ } diff --git a/surf.c b/surf.c @@ -686,7 +686,7 @@ getatom(Client *c, int a) unsigned char *p = NULL; XGetWindowProperty(dpy, GDK_WINDOW_XID(GTK_WIDGET(c->win)->window), - atoms[a], 0L, BUFSIZ, False, XA_STRING, + atoms[a], 0L, BUFSIZ, False, AnyPropertyType, &adummy, &idummy, &ldummy, &ldummy, &p); if (p) strncpy(buf, (char *)p, LENGTH(buf)-1);