summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 6c24395f..38019be5 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -602,6 +602,10 @@ static struct cmd_results *cmd_mode(int argc, char **argv) {
602 free(mode_name); 602 free(mode_name);
603 // Set current mode 603 // Set current mode
604 config->current_mode = mode; 604 config->current_mode = mode;
605 if (!mode_make) {
606 // trigger IPC mode event
607 ipc_event_mode(config->current_mode->name);
608 }
605 return cmd_results_new(mode_make ? CMD_BLOCK_MODE : CMD_SUCCESS, NULL, NULL); 609 return cmd_results_new(mode_make ? CMD_BLOCK_MODE : CMD_SUCCESS, NULL, NULL);
606} 610}
607 611