diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-21 15:40:01 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-21 15:40:01 +0100 |
commit | 42e5b4b032ab72b8dcd13e6cd40a93a394c96cd2 (patch) | |
tree | 531a5922a395f5c435150dc59d00b984186cfc06 /sway | |
parent | Merge pull request #388 from mikkeloscar/bar-commands (diff) | |
download | sway-42e5b4b032ab72b8dcd13e6cd40a93a394c96cd2.tar.gz sway-42e5b4b032ab72b8dcd13e6cd40a93a394c96cd2.tar.zst sway-42e5b4b032ab72b8dcd13e6cd40a93a394c96cd2.zip |
Don't skip all clients on ipc_workspace_event.
Only clients not subcriped to the workspace event should be skipped.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/ipc-server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 9dd3e1a5..bb5e0d25 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c | |||
@@ -564,7 +564,9 @@ void ipc_event_workspace(swayc_t *old, swayc_t *new) { | |||
564 | 564 | ||
565 | for (int i = 0; i < ipc_client_list->length; i++) { | 565 | for (int i = 0; i < ipc_client_list->length; i++) { |
566 | struct ipc_client *client = ipc_client_list->items[i]; | 566 | struct ipc_client *client = ipc_client_list->items[i]; |
567 | if ((client->subscribed_events & IPC_GET_WORKSPACES) == 0) break; | 567 | if ((client->subscribed_events & IPC_GET_WORKSPACES) == 0) { |
568 | continue; | ||
569 | } | ||
568 | ipc_send_reply(client, json_string, (uint32_t) strlen(json_string)); | 570 | ipc_send_reply(client, json_string, (uint32_t) strlen(json_string)); |
569 | } | 571 | } |
570 | 572 | ||