From 38a1628a76e22220e18ece7ee82ac45421d9b42f Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 21 Jan 2018 14:21:32 -0500 Subject: [PATCH] clear handler context before ipc command --- sway/ipc-server.c | 1 + 1 file changed, 1 insertion(+) 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];