diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-31 21:27:38 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-11-01 18:09:51 +1000 |
commit | 9fc736f4e1804b06538191786500f927ba0cda13 (patch) | |
tree | 8399de2ba00a8a0dd57f49dfc30455c330500b54 /sway/ipc-json.c | |
parent | Merge pull request #3040 from RyanDwyer/border-props-to-container (diff) | |
download | sway-9fc736f4e1804b06538191786500f927ba0cda13.tar.gz sway-9fc736f4e1804b06538191786500f927ba0cda13.tar.zst sway-9fc736f4e1804b06538191786500f927ba0cda13.zip |
Move view marks properties to container struct
Like border properties, this will be needed to implement layout saving
and restoring.
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 6 |
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 | |||
230 | app_id ? json_object_new_string(app_id) : NULL); | 230 | app_id ? json_object_new_string(app_id) : NULL); |
231 | 231 | ||
232 | json_object *marks = json_object_new_array(); | 232 | json_object *marks = json_object_new_array(); |
233 | list_t *view_marks = c->view->marks; | 233 | list_t *con_marks = c->marks; |
234 | for (int i = 0; i < view_marks->length; ++i) { | 234 | for (int i = 0; i < con_marks->length; ++i) { |
235 | json_object_array_add(marks, json_object_new_string(view_marks->items[i])); | 235 | json_object_array_add(marks, json_object_new_string(con_marks->items[i])); |
236 | } | 236 | } |
237 | 237 | ||
238 | json_object_object_add(object, "marks", marks); | 238 | json_object_object_add(object, "marks", marks); |