]> git.sur5r.net Git - i3/i3/blobdiff - src/load_layout.c
Merge pull request #3697 from orestisf1993/ewmh
[i3/i3] / src / load_layout.c
index b4d2a688383693703d6c0cbb9d52d8db072191ad..47daada1c20048809439fb16d1f7d741c4d54e63 100644 (file)
@@ -152,7 +152,7 @@ static int json_end_map(void *ctx) {
                 }
             }
 
-            floating_check_size(json_node);
+            floating_check_size(json_node, false);
         }
 
         if (num_marks > 0) {
@@ -420,6 +420,9 @@ static int json_string(void *ctx, const unsigned char *val, size_t len) {
             else if (strcasecmp(buf, "changed") == 0)
                 json_node->scratchpad_state = SCRATCHPAD_CHANGED;
             free(buf);
+        } else if (strcasecmp(last_key, "previous_workspace_name") == 0) {
+            FREE(previous_workspace_name);
+            previous_workspace_name = sstrndup((const char *)val, len);
         }
     }
     return 1;