summaryrefslogtreecommitdiffstats
path: root/control.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 14:46:04 +0000
committernicm <nicm>2020-04-13 14:46:04 +0000
commitadb76fd1ce8753a958d4ffe14db724f9f4d674ea (patch)
tree7d724330c7347975fa1546b99b55a145ee5f2be3 /control.c
parent9a65102bfc2ed5d1e1f41e47451b8296c84f133d (diff)
Move cmdq_state into cmd-queue.c.
Diffstat (limited to 'control.c')
-rw-r--r--control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/control.c b/control.c
index 088371f5..d3515005 100644
--- a/control.c
+++ b/control.c
@@ -85,8 +85,8 @@ control_callback(__unused struct client *c, __unused const char *path,
cmdq_append(c, item);
break;
case CMD_PARSE_SUCCESS:
- item = cmdq_get_command(pr->cmdlist, NULL, NULL, 0);
- cmdq_get_state(item)->flags |= CMDQ_STATE_CONTROL;
+ item = cmdq_get_command(pr->cmdlist, NULL, NULL,
+ CMDQ_STATE_CONTROL);
cmdq_append(c, item);
cmd_list_free(pr->cmdlist);
break;