mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Implement marks
This commit is contained in:
parent
f1f54bbc88
commit
22d38600d0
7 changed files with 178 additions and 3 deletions
|
|
@ -75,8 +75,16 @@ static bool criteria_matches_view(struct criteria *criteria,
|
|||
}
|
||||
|
||||
if (criteria->con_mark) {
|
||||
// TODO
|
||||
return false;
|
||||
bool exists = false;
|
||||
for (int i = 0; i < view->marks->length; ++i) {
|
||||
if (regex_cmp(view->marks->items[i], criteria->con_mark) == 0) {
|
||||
exists = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!exists) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (criteria->con_id) { // Internal ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue