mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view.c: add new NO_OMNIPRESENT criteria
This commit is contained in:
parent
c5b9e2665d
commit
5cf4aa83e2
2 changed files with 10 additions and 0 deletions
|
|
@ -263,6 +263,15 @@ matches_criteria(struct view *view, enum lab_view_criteria criteria)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (criteria & LAB_VIEW_CRITERIA_NO_OMNIPRESENT) {
|
||||
/*
|
||||
* TODO: Once always-on-top views use a per-workspace
|
||||
* sub-tree we can remove the check from this condition.
|
||||
*/
|
||||
if (view->visible_on_all_workspaces || view_is_always_on_top(view)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue