diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-06 07:26:54 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-06 07:26:54 -0500 |
commit | 8f5de70c93b2afaab0dd7d384c58ff3d3007193c (patch) | |
tree | 4826eca48ec5d4d2b827477c74de7d500f39f0fa /include/ipc-server.h | |
parent | 18f81850114af1ca969387e0715d9284e77b0148 (diff) | |
parent | 843e2ad2c140288733110691f7dc8252fbe4dc16 (diff) | |
download | sway-8f5de70c93b2afaab0dd7d384c58ff3d3007193c.tar.xz |
Merge pull request #434 from mikkeloscar/detect-modifier
Send IPC modifier event on bar_modifier up/down
Diffstat (limited to 'include/ipc-server.h')
-rw-r--r-- | include/ipc-server.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ipc-server.h b/include/ipc-server.h index 04975093..47026bfd 100644 --- a/include/ipc-server.h +++ b/include/ipc-server.h @@ -15,6 +15,12 @@ void ipc_event_barconfig_update(struct bar_config *bar); * Send IPC mode event to all listening clients */ void ipc_event_mode(const char *mode); +/** + * Sends an IPC modifier event to all listening clients. The modifier event + * includes a key 'change' with the value of state and a key 'modifier' with + * the name of that modifier. + */ +void ipc_event_modifier(uint32_t modifier, const char *state); const char *swayc_type_string(enum swayc_types type); #endif |