aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-06 06:28:01 -0700
committerGitHub <noreply@github.com>2018-07-06 06:28:01 -0700
commit3d2595b1028ce1f7cf0ceff673e7180c6c991afb (patch)
treea645930a9b105185a5f2dbddbe8ca8acf50a4559 /sway/ipc-server.c
parentf63b209d51bab84aacb001adfd443c7f4c9a8cfe (diff)
parenta06d45a14d1f222a42d23bf1f49bb6995dc3b27b (diff)
Merge branch 'master' into remove-input-fix
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) {
json_object_put(json);
}
-void ipc_event_mode(const char *mode) {
+void ipc_event_mode(const char *mode, bool pango) {
if (!ipc_has_event_listeners(IPC_EVENT_MODE)) {
return;
}
wlr_log(L_DEBUG, "Sending mode::%s event", mode);
json_object *obj = json_object_new_object();
json_object_object_add(obj, "change", json_object_new_string(mode));
+ json_object_object_add(obj, "pango_markup",
+ json_object_new_boolean(pango));
const char *json_string = json_object_to_json_string(obj);
ipc_send_event(json_string, IPC_EVENT_MODE);