mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
ipc: add ability to subscribe to output event
This commit is contained in:
parent
4cda9ee3a3
commit
7d0351b411
|
@ -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));
|
const char *event_type = json_object_get_string(json_object_array_get_idx(request, i));
|
||||||
if (strcmp(event_type, "workspace") == 0) {
|
if (strcmp(event_type, "workspace") == 0) {
|
||||||
client->subscribed_events |= event_mask(IPC_EVENT_WORKSPACE);
|
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) {
|
} else if (strcmp(event_type, "barconfig_update") == 0) {
|
||||||
client->subscribed_events |= event_mask(IPC_EVENT_BARCONFIG_UPDATE);
|
client->subscribed_events |= event_mask(IPC_EVENT_BARCONFIG_UPDATE);
|
||||||
} else if (strcmp(event_type, "bar_state_update") == 0) {
|
} else if (strcmp(event_type, "bar_state_update") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue