summaryrefslogtreecommitdiffstats
path: root/include/ipc-server.h
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 02:20:20 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 02:25:56 +0100
commitc20c63b677c03b17441f0d135b5325e23d65f38d (patch)
treee16dde2339d7cb1079a83842c53324ac91fed600 /include/ipc-server.h
parentDetect bar modifier pressed/released (diff)
downloadsway-c20c63b677c03b17441f0d135b5325e23d65f38d.tar.gz
sway-c20c63b677c03b17441f0d135b5325e23d65f38d.tar.zst
sway-c20c63b677c03b17441f0d135b5325e23d65f38d.zip
Send IPC modifier event on bar_modifier up/down
Detects when a bar modifier key is pressed/released and sends a modifier IPC event to any listeners (usually swaybars). This way a swaybar can listen on the modifier event and hide/show the bar accordingly (not implemented yet) The modifier event looks like this: { "change": "pressed", // or released "modifier": "Mod4" }
Diffstat (limited to 'include/ipc-server.h')
-rw-r--r--include/ipc-server.h6
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);
15 * Send IPC mode event to all listening clients 15 * Send IPC mode event to all listening clients
16 */ 16 */
17void ipc_event_mode(const char *mode); 17void ipc_event_mode(const char *mode);
18/**
19 * Sends an IPC modifier event to all listening clients. The modifier event
20 * includes a key 'change' with the value of state and a key 'modifier' with
21 * the name of that modifier.
22 */
23void ipc_event_modifier(uint32_t modifier, const char *state);
18const char *swayc_type_string(enum swayc_types type); 24const char *swayc_type_string(enum swayc_types type);
19 25
20#endif 26#endif