mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
new_workspace null behavior + testmap functions + regex
This commit is contained in:
parent
f5343adae4
commit
e1d18e42a8
12 changed files with 581 additions and 370 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();
|
||||
container_map(&root_container, ipc_get_workspaces_callback, workspaces);
|
||||
swayc_map(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();
|
||||
container_map(&root_container, ipc_get_outputs_callback, outputs);
|
||||
swayc_map(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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue