diff options
author | Ian Fan <ianfan0@gmail.com> | 2020-03-02 13:48:43 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-10 15:55:54 +0100 |
commit | 28e3187df1c85500efa3b3afb9032e8fe21b77d1 (patch) | |
tree | eae51a19642813cf600c7832fdd1f98614378bd1 /sway | |
parent | 91c0ffd6cf1ffb6a86c3ce4d6365ab0843ad9c37 (diff) |
ipc: add missing required properties
Diffstat (limited to 'sway')
-rw-r--r-- | sway/ipc-json.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index dc3fbc2f..d3731092 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -196,6 +196,9 @@ static json_object *ipc_json_create_node(int id, char *name, json_object_object_add(object, "geometry", ipc_json_create_empty_rect()); json_object_object_add(object, "window", NULL); json_object_object_add(object, "urgent", json_object_new_boolean(false)); + json_object_object_add(object, "marks", json_object_new_array()); + json_object_object_add(object, "fullscreen_mode", json_object_new_int(0)); + json_object_object_add(object, "nodes", json_object_new_array()); json_object_object_add(object, "floating_nodes", json_object_new_array()); json_object_object_add(object, "sticky", json_object_new_boolean(false)); @@ -346,6 +349,7 @@ static json_object *ipc_json_describe_scratchpad_output(void) { json_object *workspace = ipc_json_create_node(i3_scratch_id, "__i3_scratch", false, workspace_focus, &box); + json_object_object_add(workspace, "fullscreen_mode", json_object_new_int(1)); json_object_object_add(workspace, "type", json_object_new_string("workspace")); @@ -383,6 +387,7 @@ static void ipc_json_describe_workspace(struct sway_workspace *workspace, int num = isdigit(workspace->name[0]) ? atoi(workspace->name) : -1; json_object_object_add(object, "num", json_object_new_int(num)); + json_object_object_add(object, "fullscreen_mode", json_object_new_int(1)); json_object_object_add(object, "output", workspace->output ? json_object_new_string(workspace->output->wlr_output->name) : NULL); json_object_object_add(object, "type", json_object_new_string("workspace")); |