]> git.sur5r.net Git - i3/i3/blobdiff - src/assignments.c
Bugfix: clear wm_size_hints if they are not set
[i3/i3] / src / assignments.c
index 09793c38d7b456f9f4375b760bde9b7a930c21db..ea39eafa77e1d038d6b41636ebe43189d036f941 100644 (file)
@@ -1,3 +1,5 @@
+#undef I3__FILE__
+#define I3__FILE__ "assignments.c"
 /*
  * vim:ts=4:sw=4:expandtab
  *
@@ -26,7 +28,7 @@ void run_assignments(i3Window *window) {
             continue;
 
         bool skip = false;
-        for (int c = 0; c < window->nr_assignments; c++) {
+        for (uint32_t c = 0; c < window->nr_assignments; c++) {
             if (window->ran_assignments[c] != current)
                 continue;
 
@@ -49,7 +51,7 @@ void run_assignments(i3Window *window) {
             if (command_output->needs_tree_render)
                 needs_tree_render = true;
 
-            free(command_output->json_output);
+            yajl_gen_free(command_output->json_gen);
         }
 
         /* Store that we ran this assignment to not execute it again */