mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/view.c: add always_on_top criteria
This commit is contained in:
parent
2734302fd2
commit
4d679801ad
2 changed files with 21 additions and 4 deletions
|
|
@ -105,6 +105,11 @@ matches_criteria(struct view *view, enum lab_view_criteria criteria)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (criteria & LAB_VIEW_CRITERIA_ALWAYS_ON_TOP) {
|
||||
if (!view_is_always_on_top(view)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (criteria & LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP) {
|
||||
if (view_is_always_on_top(view)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue