diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-21 09:49:55 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-21 09:49:55 -0500 |
commit | 442a54c38bb60d92bd4383f0d80ca55b876399e8 (patch) | |
tree | b0a04e0bb33a3538fb5650d9722e468dca55f3d1 /sway | |
parent | fb91d55b924b63361a5e2807dbc012b4ad7bc880 (diff) | |
parent | 42e5b4b032ab72b8dcd13e6cd40a93a394c96cd2 (diff) |
Merge pull request #390 from mikkeloscar/workspace-ipc-event
Don't skip all clients on ipc_workspace_event.
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 96d4f945..b459b5ce 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -575,7 +575,9 @@ void ipc_event_workspace(swayc_t *old, swayc_t *new) { for (int i = 0; i < ipc_client_list->length; i++) { struct ipc_client *client = ipc_client_list->items[i]; - if ((client->subscribed_events & IPC_GET_WORKSPACES) == 0) break; + if ((client->subscribed_events & IPC_GET_WORKSPACES) == 0) { + continue; + } ipc_send_reply(client, json_string, (uint32_t) strlen(json_string)); } |