Use name_json if available, rather than non-descriptive name.
This commit is contained in:
parent
833e4233fc
commit
6e59d693d2
|
@ -243,6 +243,9 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
|
||||||
dump_rect(gen, "geometry", con->geometry);
|
dump_rect(gen, "geometry", con->geometry);
|
||||||
|
|
||||||
ystr("name");
|
ystr("name");
|
||||||
|
if (con->window && con->window->name_json)
|
||||||
|
ystr(con->window->name_json);
|
||||||
|
else
|
||||||
ystr(con->name);
|
ystr(con->name);
|
||||||
|
|
||||||
if (con->type == CT_WORKSPACE) {
|
if (con->type == CT_WORKSPACE) {
|
||||||
|
|
Loading…
Reference in New Issue