From: Peter Bui Date: Sun, 21 Aug 2011 20:19:53 +0000 (-0400) Subject: Use name_json if available, rather than non-descriptive name. X-Git-Tag: 4.0.2~5^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e59d693d20842cc229e6cac00f19198a65ac78a;p=i3%2Fi3 Use name_json if available, rather than non-descriptive name. --- 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");