diff options
author | Drew DeVault <[email protected]> | 2015-09-13 19:46:16 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-09-13 19:46:16 -0400 |
commit | e505abfe75923d06098f6230e5a7ba39c091d3ce (patch) | |
tree | fc90bdf0afed21d725f6ee7a9245e397e1577517 /sway/ipc.c | |
parent | 9c8f1fb9649c5673cd6b42230c0784f099a62db7 (diff) |
Revert "new_workspace null behavior + testmap functions + regex"
This reverts commit e1d18e42a8f3a597b9bf5f1bb2ab6c346e4e7983.
Fixes #180
cc @taiyu-len
Diffstat (limited to 'sway/ipc.c')
-rw-r--r-- | sway/ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -207,7 +207,7 @@ void ipc_client_handle_command(struct ipc_client *client) { case IPC_GET_WORKSPACES: { json_object *workspaces = json_object_new_array(); - swayc_map(ipc_get_workspaces_callback, workspaces); + container_map(&root_container, ipc_get_workspaces_callback, workspaces); const char *json_string = json_object_to_json_string(workspaces); ipc_send_reply(client, json_string, (uint32_t) strlen(json_string)); json_object_put(workspaces); // free @@ -216,7 +216,7 @@ void ipc_client_handle_command(struct ipc_client *client) { case IPC_GET_OUTPUTS: { json_object *outputs = json_object_new_array(); - swayc_map(ipc_get_outputs_callback, outputs); + container_map(&root_container, ipc_get_outputs_callback, outputs); const char *json_string = json_object_to_json_string(outputs); ipc_send_reply(client, json_string, (uint32_t) strlen(json_string)); json_object_put(outputs); // free |