mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -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
|
|
@ -159,8 +159,8 @@ static bool test_id(struct sway_container *container, void *id) {
|
|||
}
|
||||
|
||||
static bool test_mark(struct sway_container *container, void *mark) {
|
||||
if (container->view && container->view->marks->length) {
|
||||
return !list_seq_find(container->view->marks,
|
||||
if (container->marks->length) {
|
||||
return !list_seq_find(container->marks,
|
||||
(int (*)(const void *, const void *))strcmp, mark);
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue