i3/window: Port window names to i3String

This commit is contained in:
Quentin Glidic
2012-08-07 21:23:06 +02:00
parent bc5f33878a
commit b6c705a1a4
6 changed files with 19 additions and 57 deletions

View File

@ -259,8 +259,8 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
dump_rect(gen, "geometry", con->geometry);
ystr("name");
if (con->window && con->window->name_json)
ystr(con->window->name_json);
if (con->window && con->window->name)
ystr(i3string_as_utf8(con->window->name));
else
ystr(con->name);