- DLOG("matching assignment, would do:\n");
- if (current->type == A_COMMAND) {
- DLOG("execute command %s\n", current->dest.command);
- char *full_command;
- sasprintf(&full_command, "[id=\"%d\"] %s", window->id, current->dest.command);
- CommandResult *result = parse_command(full_command, NULL);
- free(full_command);
-
- if (result->needs_tree_render)
- needs_tree_render = true;
-
- command_result_free(result);
- }
-
- /* Store that we ran this assignment to not execute it again */
+ /* Store that we ran this assignment to not execute it again. We have
+ * to do this before running the actual command to prevent infinite
+ * loops. */