From 6e59d693d20842cc229e6cac00f19198a65ac78a Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Sun, 21 Aug 2011 16:19:53 -0400 Subject: [PATCH] Use name_json if available, rather than non-descriptive name. --- src/ipc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ipc.c b/src/ipc.c index d798ffa0..dfb1fd68 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -243,7 +243,10 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) { dump_rect(gen, "geometry", con->geometry); ystr("name"); - ystr(con->name); + if (con->window && con->window->name_json) + ystr(con->window->name_json); + else + ystr(con->name); if (con->type == CT_WORKSPACE) { ystr("num");