aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-05 18:12:14 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-05 18:12:14 -0400
commit78c08fb0a281cbe74c56f0a2ea4b9370b9372661 (patch)
tree3fc34f67deb2988a1dcd1bf06f0798ada07333b8 /sway/ipc-server.c
parentMerge pull request #2185 from swaywm/update-wlroots-1076 (diff)
downloadsway-78c08fb0a281cbe74c56f0a2ea4b9370b9372661.tar.gz
sway-78c08fb0a281cbe74c56f0a2ea4b9370b9372661.tar.zst
sway-78c08fb0a281cbe74c56f0a2ea4b9370b9372661.zip
Implement mode --pango_markup
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index abc2d7cb..8cfd9f26 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -332,13 +332,15 @@ void ipc_event_barconfig_update(struct bar_config *bar) {
332 json_object_put(json); 332 json_object_put(json);
333} 333}
334 334
335void ipc_event_mode(const char *mode) { 335void ipc_event_mode(const char *mode, bool pango) {
336 if (!ipc_has_event_listeners(IPC_EVENT_MODE)) { 336 if (!ipc_has_event_listeners(IPC_EVENT_MODE)) {
337 return; 337 return;
338 } 338 }
339 wlr_log(L_DEBUG, "Sending mode::%s event", mode); 339 wlr_log(L_DEBUG, "Sending mode::%s event", mode);
340 json_object *obj = json_object_new_object(); 340 json_object *obj = json_object_new_object();
341 json_object_object_add(obj, "change", json_object_new_string(mode)); 341 json_object_object_add(obj, "change", json_object_new_string(mode));
342 json_object_object_add(obj, "pango_markup",
343 json_object_new_boolean(pango));
342 344
343 const char *json_string = json_object_to_json_string(obj); 345 const char *json_string = json_object_to_json_string(obj);
344 ipc_send_event(json_string, IPC_EVENT_MODE); 346 ipc_send_event(json_string, IPC_EVENT_MODE);