Introduction
Introduction Statistics Contact Development Disclaimer Help
surf-0.6-dmenu-unicode.diff - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
surf-0.6-dmenu-unicode.diff (843B)
---
1 diff --git a/config.def.h b/config.def.h
2 index a221c86..ac35199 100644
3 --- a/config.def.h
4 +++ b/config.def.h
5 @@ -27,7 +27,7 @@ static Bool hidebackground = FALSE;
6 #define SETPROP(p, q) { \
7 .v = (char *[]){ "/bin/sh", "-c", \
8 "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" …
9 - "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
10 + "xprop -id $2 -f $1 8u -set $1 \"$prop\"", \
11 p, q, winid, NULL \
12 } \
13 }
14 diff --git a/surf.c b/surf.c
15 index cebd469..b467bbd 100644
16 --- a/surf.c
17 +++ b/surf.c
18 @@ -475,7 +475,7 @@ getatom(Client *c, int a) {
19 unsigned char *p = NULL;
20
21 XGetWindowProperty(dpy, GDK_WINDOW_XID(GTK_WIDGET(c->win)->wind…
22 - atoms[a], 0L, BUFSIZ, False, XA_STRING,
23 + atoms[a], 0L, BUFSIZ, False, AnyPropertyType,
24 &adummy, &idummy, &ldummy, &ldummy, &p);
25 if(p)
26 strncpy(buf, (char *)p, LENGTH(buf)-1);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.