mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
actions: added query tiled=any comparison for rc.xml simplification
This commit is contained in:
parent
359dd8f3c7
commit
13ff64f6e4
3 changed files with 12 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue