aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-01-21 14:21:32 -0500
committerTony Crisci <tony@dubstepdish.com>2018-01-21 14:21:32 -0500
commit38a1628a76e22220e18ece7ee82ac45421d9b42f (patch)
tree4d99cb1abb5bdce33c5e6a85cd07420468b8d023 /sway
parentc3fc0d446f64ef7f46bc2a152cd68331de4410d0 (diff)
downloadsway-38a1628a76e22220e18ece7ee82ac45421d9b42f.tar.xz
clear handler context before ipc command
Diffstat (limited to 'sway')
-rw-r--r--sway/ipc-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index d2dd881f..a16a2b80 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -335,6 +335,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
switch (client->current_command) {
case IPC_COMMAND:
{
+ config_clear_handler_context(config);
struct cmd_results *results = handle_command(buf);
const char *json = cmd_results_to_json(results);
char reply[256];