mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
swaybar: Implement binding_mode_indicator
This commit is contained in:
parent
f2d519d0ba
commit
aa2f754c64
4 changed files with 96 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue