mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
window-rules: add root-toplevel critiera
This commit is contained in:
parent
c71fccbcec
commit
79bca44cb1
4 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue