diff options
author | Mikkel Oscar Lyderik <[email protected]> | 2016-01-03 22:00:59 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <[email protected]> | 2016-01-03 22:16:36 +0100 |
commit | aa2f754c64605676c9f3586ebf18f667e787c06a (patch) | |
tree | 3cd19b37cfe852fa9e2b2f7104fc0c92c4ccdec1 /sway/commands.c | |
parent | f2d519d0bac03b9d69221d3c6c59feb39b9ccf4f (diff) |
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); } |