diff options
author | 2023-02-06 10:52:51 +0100 | |
---|---|---|
committer | 2023-02-06 11:02:52 +0100 | |
commit | 7d0351b41195671263a92997caab620c763d9d65 (patch) | |
tree | 1be415734a878837624251a8317fc3d02550a832 /sway | |
parent | launcher: support external launcher tokens (diff) | |
download | sway-7d0351b41195671263a92997caab620c763d9d65.tar.gz sway-7d0351b41195671263a92997caab620c763d9d65.tar.zst sway-7d0351b41195671263a92997caab620c763d9d65.zip |
ipc: add ability to subscribe to output event
Diffstat (limited to 'sway')
-rw-r--r-- | sway/ipc-server.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
739 | const char *event_type = json_object_get_string(json_object_array_get_idx(request, i)); | 739 | const char *event_type = json_object_get_string(json_object_array_get_idx(request, i)); |
740 | if (strcmp(event_type, "workspace") == 0) { | 740 | if (strcmp(event_type, "workspace") == 0) { |
741 | client->subscribed_events |= event_mask(IPC_EVENT_WORKSPACE); | 741 | client->subscribed_events |= event_mask(IPC_EVENT_WORKSPACE); |
742 | } else if (strcmp(event_type, "output") == 0) { | ||
743 | client->subscribed_events |= event_mask(IPC_EVENT_OUTPUT); | ||
742 | } else if (strcmp(event_type, "barconfig_update") == 0) { | 744 | } else if (strcmp(event_type, "barconfig_update") == 0) { |
743 | client->subscribed_events |= event_mask(IPC_EVENT_BARCONFIG_UPDATE); | 745 | client->subscribed_events |= event_mask(IPC_EVENT_BARCONFIG_UPDATE); |
744 | } else if (strcmp(event_type, "bar_state_update") == 0) { | 746 | } else if (strcmp(event_type, "bar_state_update") == 0) { |