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-server.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-server.c')
-rw-r--r-- | sway/ipc-server.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 21f431be..6466d263 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c | |||
@@ -563,11 +563,9 @@ static void ipc_get_workspaces_callback(struct sway_workspace *workspace, | |||
563 | 563 | ||
564 | static void ipc_get_marks_callback(struct sway_container *con, void *data) { | 564 | static void ipc_get_marks_callback(struct sway_container *con, void *data) { |
565 | json_object *marks = (json_object *)data; | 565 | json_object *marks = (json_object *)data; |
566 | if (con->view && con->view->marks) { | 566 | for (int i = 0; i < con->marks->length; ++i) { |
567 | for (int i = 0; i < con->view->marks->length; ++i) { | 567 | char *mark = (char *)con->marks->items[i]; |
568 | char *mark = (char *)con->view->marks->items[i]; | 568 | json_object_array_add(marks, json_object_new_string(mark)); |
569 | json_object_array_add(marks, json_object_new_string(mark)); | ||
570 | } | ||
571 | } | 569 | } |
572 | } | 570 | } |
573 | 571 | ||