aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-01 13:01:15 +0100
committerGitHub <noreply@github.com>2018-11-01 13:01:15 +0100
commit8ad06f0ec554da0ded551fc1b83f9cd0b3fa2a27 (patch)
tree8399de2ba00a8a0dd57f49dfc30455c330500b54 /sway/ipc-json.c
parent480b03b734e6d1d068859b254d8ace4fb07b2c54 (diff)
parent9fc736f4e1804b06538191786500f927ba0cda13 (diff)
downloadsway-8ad06f0ec554da0ded551fc1b83f9cd0b3fa2a27.tar.xz
Merge pull request #3041 from RyanDwyer/marks-props-to-container
Move view marks properties to container struct
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 5c9b3e5a..20ab57b4 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -230,9 +230,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
app_id ? json_object_new_string(app_id) : NULL);
json_object *marks = json_object_new_array();
- list_t *view_marks = c->view->marks;
- for (int i = 0; i < view_marks->length; ++i) {
- json_object_array_add(marks, json_object_new_string(view_marks->items[i]));
+ list_t *con_marks = c->marks;
+ for (int i = 0; i < con_marks->length; ++i) {
+ json_object_array_add(marks, json_object_new_string(con_marks->items[i]));
}
json_object_object_add(object, "marks", marks);