mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Move view marks properties to container struct
Like border properties, this will be needed to implement layout saving and restoring.
This commit is contained in:
parent
480b03b734
commit
9fc736f4e1
16 changed files with 236 additions and 261 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue