replace XFetchName() with something more intelligent which attempts to

use the appropriate netwm Atom first, as well as deal with utf8.

slightly different incarnation tested by sthen@ and ajacoutot@ - thanks!

ok oga@
This commit is contained in:
okan
2010-05-22 22:10:31 +00:00
parent a292c96977
commit 72e6d2d0a9
3 changed files with 37 additions and 4 deletions

View File

@@ -401,7 +401,7 @@ void xu_key_grab(Window, int, int);
void xu_key_ungrab(Window, int, int);
void xu_sendmsg(Window, Atom, long);
int xu_getprop(Window, Atom, Atom, long, u_char **);
char *xu_getstrprop(struct client_ctx *, Atom atm);
int xu_getstrprop(Window, Atom, char **);
void xu_setstate(struct client_ctx *, int);
int xu_getstate(struct client_ctx *, int *);
unsigned long xu_getcolor(struct screen_ctx *, char *);