From 7d0351b41195671263a92997caab620c763d9d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baltaz=C3=A1r=20Radics?= Date: Mon, 6 Feb 2023 10:52:51 +0100 Subject: [PATCH] ipc: add ability to subscribe to output event --- sway/ipc-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 2941ee76..9692a77f 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -739,6 +739,8 @@ void ipc_client_handle_command(struct ipc_client *client, uint32_t payload_lengt const char *event_type = json_object_get_string(json_object_array_get_idx(request, i)); if (strcmp(event_type, "workspace") == 0) { client->subscribed_events |= event_mask(IPC_EVENT_WORKSPACE); + } else if (strcmp(event_type, "output") == 0) { + client->subscribed_events |= event_mask(IPC_EVENT_OUTPUT); } else if (strcmp(event_type, "barconfig_update") == 0) { client->subscribed_events |= event_mask(IPC_EVENT_BARCONFIG_UPDATE); } else if (strcmp(event_type, "bar_state_update") == 0) {