mirror of
https://github.com/swaywm/sway.git
synced 2025-11-23 06:59:48 -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
|
|
@ -121,8 +121,9 @@ static bool criteria_matches_view(struct criteria *criteria,
|
|||
|
||||
if (criteria->con_mark) {
|
||||
bool exists = false;
|
||||
for (int i = 0; i < view->marks->length; ++i) {
|
||||
if (regex_cmp(view->marks->items[i], criteria->con_mark) == 0) {
|
||||
struct sway_container *con = view->container;
|
||||
for (int i = 0; i < con->marks->length; ++i) {
|
||||
if (regex_cmp(con->marks->items[i], criteria->con_mark) == 0) {
|
||||
exists = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue