property: do not convert

We do not need to convert text unless we render them.
And textbox already convert.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-02-20 11:07:39 +01:00
parent c675bf64ec
commit 77075d7281
1 changed files with 4 additions and 11 deletions

View File

@ -207,7 +207,7 @@ property_handle_wm_hints(void *data,
void
property_update_wm_name(client_t *c)
{
char *name, *utf8;
char *name;
ssize_t len;
if(!xutil_text_prop_get(globalconf.connection, c->win, _NET_WM_NAME, &name, &len))
@ -216,10 +216,6 @@ property_update_wm_name(client_t *c)
p_delete(&c->name);
/* if no conversion needed, just point to name */
if(draw_iso2utf8(name, len, &utf8, NULL))
p_delete(&name);
else
c->name = name;
/* call hook */
@ -233,7 +229,7 @@ property_update_wm_name(client_t *c)
void
property_update_wm_icon_name(client_t *c)
{
char *name, *utf8;
char *name;
ssize_t len;
if(!xutil_text_prop_get(globalconf.connection, c->win, _NET_WM_ICON_NAME, &name, &len))
@ -242,9 +238,6 @@ property_update_wm_icon_name(client_t *c)
p_delete(&c->icon_name);
if(draw_iso2utf8(name, len, &utf8, NULL))
p_delete(&name);
else
c->icon_name = name;
/* call hook */