diff options
author | 2016-01-03 16:24:06 -0500 | |
---|---|---|
committer | 2016-01-03 16:24:06 -0500 | |
commit | 2c12175672f2d01b202eafc71d5c84181b96f689 (patch) | |
tree | 3cd19b37cfe852fa9e2b2f7104fc0c92c4ccdec1 /sway/commands.c | |
parent | Merge pull request #427 from mikkeloscar/ipc-update (diff) | |
parent | swaybar: Implement binding_mode_indicator (diff) | |
download | sway-2c12175672f2d01b202eafc71d5c84181b96f689.tar.gz sway-2c12175672f2d01b202eafc71d5c84181b96f689.tar.zst sway-2c12175672f2d01b202eafc71d5c84181b96f689.zip |
Merge pull request #428 from mikkeloscar/bar-mode-indicator
swaybar: Implement binding_mode_indicator
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
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 | ||