mirror of
https://github.com/labwc/labwc.git
synced 2026-02-05 04:06:33 -05: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
|
|
@ -340,6 +340,7 @@ enum lab_view_criteria {
|
|||
/* Negative criteria */
|
||||
LAB_VIEW_CRITERIA_NO_ALWAYS_ON_TOP = 1 << 6,
|
||||
LAB_VIEW_CRITERIA_NO_SKIP_WINDOW_SWITCHER = 1 << 7,
|
||||
LAB_VIEW_CRITERIA_NO_OMNIPRESENT = 1 << 8,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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