window-rules: add root-toplevel critiera

This commit is contained in:
Johan Malm 2024-01-30 18:04:43 +00:00 committed by Consolatis
parent c71fccbcec
commit 79bca44cb1
4 changed files with 8 additions and 0 deletions

View file

@ -108,6 +108,11 @@ matches_criteria(struct view *view, enum lab_view_criteria criteria)
return false;
}
}
if (criteria & LAB_VIEW_CRITERIA_ROOT_TOPLEVEL) {
if (view != view_get_root(view)) {
return false;
}
}
if (criteria & LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP) {
if (view_is_always_on_top(view)) {
return false;