diff options
author | Drew DeVault <[email protected]> | 2016-01-03 16:24:06 -0500 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2016-01-03 16:24:06 -0500 |
commit | 2c12175672f2d01b202eafc71d5c84181b96f689 (patch) | |
tree | 3cd19b37cfe852fa9e2b2f7104fc0c92c4ccdec1 /sway/commands.c | |
parent | f2d519d0bac03b9d69221d3c6c59feb39b9ccf4f (diff) | |
parent | aa2f754c64605676c9f3586ebf18f667e787c06a (diff) |
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) { free(mode_name); // Set current mode config->current_mode = mode; + if (!mode_make) { + // trigger IPC mode event + ipc_event_mode(config->current_mode->name); + } return cmd_results_new(mode_make ? CMD_BLOCK_MODE : CMD_SUCCESS, NULL, NULL); } |