mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -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
|
|
@ -563,11 +563,9 @@ static void ipc_get_workspaces_callback(struct sway_workspace *workspace,
|
|||
|
||||
static void ipc_get_marks_callback(struct sway_container *con, void *data) {
|
||||
json_object *marks = (json_object *)data;
|
||||
if (con->view && con->view->marks) {
|
||||
for (int i = 0; i < con->view->marks->length; ++i) {
|
||||
char *mark = (char *)con->view->marks->items[i];
|
||||
json_object_array_add(marks, json_object_new_string(mark));
|
||||
}
|
||||
for (int i = 0; i < con->marks->length; ++i) {
|
||||
char *mark = (char *)con->marks->items[i];
|
||||
json_object_array_add(marks, json_object_new_string(mark));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue