]> git.sur5r.net Git - i3/i3/commitdiff
Use name_json if available, rather than non-descriptive name.
authorPeter Bui <pnutzh4x0r@gmail.com>
Sun, 21 Aug 2011 20:19:53 +0000 (16:19 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Aug 2011 15:36:16 +0000 (17:36 +0200)
src/ipc.c

index d798ffa0a6bce3b5e401d28585629919a61cdb99..dfb1fd68a7c7c62da71ea37139f15cb0be06b910 100644 (file)
--- 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");