At 1235058822 time_t, Julien Danjou wrote: > Err! This patch seems indeed valid, or I miss something. :-) > Does it fix your problem?
Can you try this patch too? We do not need to convert here, since we anyway convert in textbox. Cheers, -- Julien Danjou // ᐰ <[email protected]> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // Ferns will rule the world.
diff --git a/property.c b/property.c
index bf08c28..3caa0b0 100644
--- a/property.c
+++ b/property.c
@@ -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,11 +216,7 @@ 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;
+ c->name = name;
/* call hook */
hooks_property(c, "name");
@@ -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,10 +238,7 @@ 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;
+ c->icon_name = name;
/* call hook */
hooks_property(c, "icon_name");
signature.asc
Description: Digital signature
