]> git.sur5r.net Git - i3/i3/blobdiff - src/ipc.c
Preserve back_and_forth during restart
[i3/i3] / src / ipc.c
index 3022d5b399bd99d6f382a33e9d533e0f2cb85b4d..2ad5ae0f4e3bef4e41325b165fa82e87098e3fb1 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -651,6 +651,11 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
         y(integer, con->depth);
     }
 
+    if (inplace_restart && con->type == CT_ROOT && previous_workspace_name) {
+        ystr("previous_workspace_name");
+        ystr(previous_workspace_name);
+    }
+
     y(map_close);
 }
 
@@ -1580,7 +1585,7 @@ void ipc_send_workspace_event(const char *change, Con *current, Con *old) {
     y(free);
 }
 
-/**
+/*
  * For the window events we send, along the usual "change" field,
  * also the window container, in "container".
  */
@@ -1610,7 +1615,7 @@ void ipc_send_window_event(const char *property, Con *con) {
     setlocale(LC_NUMERIC, "");
 }
 
-/**
+/*
  * For the barconfig update events, we send the serialized barconfig.
  */
 void ipc_send_barconfig_update_event(Barconfig *barconfig) {