]> git.sur5r.net Git - i3/i3/blobdiff - src/ipc.c
t/*ewmh*: fix flakiness by syncing
[i3/i3] / src / ipc.c
index d6bb34a4b5997651003c7c295b475f0a9f15eca1..59f0938dfb3d7aac4665be84e736af4003272562 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -299,8 +299,10 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
     ystr("name");
     if (con->window && con->window->name)
         ystr(i3string_as_utf8(con->window->name));
-    else
+    else if (con->name != NULL)
         ystr(con->name);
+    else
+        y(null);
 
     if (con->type == CT_WORKSPACE) {
         ystr("num");