indenting
This commit is contained in:
parent
97ffa9e3e2
commit
6a00a44b99
2 changed files with 5 additions and 5 deletions
|
@ -1376,9 +1376,9 @@ void client_update_title(ObClient *self)
|
||||||
|
|
||||||
/* try netwm */
|
/* try netwm */
|
||||||
if (!PROP_GETS(self->window, net_wm_name, utf8, &data))
|
if (!PROP_GETS(self->window, net_wm_name, utf8, &data))
|
||||||
/* try old x stuff */
|
/* try old x stuff */
|
||||||
if (!PROP_GETS(self->window, wm_name, locale, &data))
|
if (!PROP_GETS(self->window, wm_name, locale, &data))
|
||||||
data = g_strdup("Unnamed Window");
|
data = g_strdup("Unnamed Window");
|
||||||
|
|
||||||
/* did the title change? then reset the title_count */
|
/* did the title change? then reset the title_count */
|
||||||
if (old_title && 0 != strncmp(old_title, data, strlen(data)))
|
if (old_title && 0 != strncmp(old_title, data, strlen(data)))
|
||||||
|
@ -1412,7 +1412,7 @@ void client_update_title(ObClient *self)
|
||||||
self->title = data;
|
self->title = data;
|
||||||
|
|
||||||
if (self->frame)
|
if (self->frame)
|
||||||
frame_adjust_title(self->frame);
|
frame_adjust_title(self->frame);
|
||||||
|
|
||||||
g_free(old_title);
|
g_free(old_title);
|
||||||
|
|
||||||
|
|
|
@ -293,7 +293,7 @@ gboolean prop_get_string_locale(Window win, Atom prop, char **ret)
|
||||||
|
|
||||||
if (get_stringlist(win, prop, &list, &nstr) && nstr) {
|
if (get_stringlist(win, prop, &list, &nstr) && nstr) {
|
||||||
s = g_convert(list[0], strlen(list[0]), "UTF-8", "ISO-8859-1",
|
s = g_convert(list[0], strlen(list[0]), "UTF-8", "ISO-8859-1",
|
||||||
NULL, NULL, NULL);
|
NULL, NULL, NULL);
|
||||||
XFreeStringList(list);
|
XFreeStringList(list);
|
||||||
if (s) {
|
if (s) {
|
||||||
*ret = s;
|
*ret = s;
|
||||||
|
|
Loading…
Reference in a new issue