actions: added query tiled=any comparison for rc.xml simplification

This commit is contained in:
lynxy 2025-07-03 00:04:27 +02:00 committed by Hiroaki Yamamoto
parent 359dd8f3c7
commit 13ff64f6e4
3 changed files with 12 additions and 7 deletions

View file

@ -166,7 +166,7 @@ view_matches_query(struct view *view, struct view_query *query)
return false;
}
if (query->tiled != VIEW_EDGE_INVALID && query->tiled != view->tiled) {
if (query->tiled != VIEW_EDGE_INVALID && !(query->tiled & view->tiled)) {
return false;
}
@ -2116,6 +2116,8 @@ view_edge_parse(const char *direction)
return VIEW_EDGE_DOWN;
} else if (!strcasecmp(direction, "center")) {
return VIEW_EDGE_CENTER;
} else if (!strcasecmp(direction, "any")) {
return VIEW_EDGE_ALL;
} else {
return VIEW_EDGE_INVALID;
}