Merge pull request #390 from mikkeloscar/workspace-ipc-event

Don't skip all clients on ipc_workspace_event.
This commit is contained in:
Drew DeVault 2015-12-21 09:49:55 -05:00
commit 442a54c38b

View file

@ -575,7 +575,9 @@ void ipc_event_workspace(swayc_t *old, swayc_t *new) {
for (int i = 0; i < ipc_client_list->length; i++) { for (int i = 0; i < ipc_client_list->length; i++) {
struct ipc_client *client = ipc_client_list->items[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)); ipc_send_reply(client, json_string, (uint32_t) strlen(json_string));
} }