/* try netwm */
if (!PROP_GETS(self->window, net_wm_name, utf8, &data))
- /* try old x stuff */
- if (!PROP_GETS(self->window, wm_name, locale, &data))
- data = g_strdup("Unnamed Window");
+ /* try old x stuff */
+ if (!PROP_GETS(self->window, wm_name, locale, &data))
+ data = g_strdup("Unnamed Window");
/* did the title change? then reset the title_count */
if (old_title && 0 != strncmp(old_title, data, strlen(data)))
self->title = data;
if (self->frame)
- frame_adjust_title(self->frame);
+ frame_adjust_title(self->frame);
g_free(old_title);
if (get_stringlist(win, prop, &list, &nstr) && nstr) {
s = g_convert(list[0], strlen(list[0]), "UTF-8", "ISO-8859-1",
- NULL, NULL, NULL);
+ NULL, NULL, NULL);
XFreeStringList(list);
if (s) {
*ret = s;