sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c803b79764cc570ffbb5354adeb58d0e89f230cc
parent 66c66c730436f325c6917b787b742af5e89102ab
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Mon, 21 Dec 2015 15:31:09 +0100

Trigger event on bar mode|hidden_state commands

Diffstat:
Msway/commands.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -25,6 +25,7 @@ #include "resize.h" #include "input_state.h" #include "criteria.h" +#include "ipc-server.h" typedef struct cmd_results *sway_cmd(int argc, char **argv); @@ -1707,7 +1708,7 @@ static struct cmd_results *bar_set_hidden_state(struct bar_config *bar, const ch if (strcmp(old_state, bar->hidden_state) != 0) { if (!config->reading) { - // TODO: IPC event + ipc_event_barconfig_update(bar); } sway_log(L_DEBUG, "Setting hidden_state: '%s' for bar: %s", bar->hidden_state, bar->id); } @@ -1779,7 +1780,7 @@ static struct cmd_results *bar_set_mode(struct bar_config *bar, const char *mode if (strcmp(old_mode, bar->mode) != 0) { if (!config->reading) { - // TODO: IPC event + ipc_event_barconfig_update(bar); } sway_log(L_DEBUG, "Setting mode: '%s' for bar: %s", bar->mode, bar->id); }