mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
query: add window type filter for if-actions
This commit is contained in:
parent
b9b870cfa7
commit
7bc3cae91a
4 changed files with 12 additions and 0 deletions
|
|
@ -80,6 +80,11 @@ view_matches_query(struct view *view, struct view_query *query)
|
|||
match &= match_glob(query->title, title);
|
||||
}
|
||||
|
||||
if (match && query->window_type >= 0) {
|
||||
empty = false;
|
||||
match &= view_contains_window_type(view, query->window_type);
|
||||
}
|
||||
|
||||
return !empty && match;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue