cycle: show non-dialog child windows in window switcher

Before this commit, the window switcher skipped all the child windows.

However, as child windows not marked as modal dialogs can lose focus
(ref. `desktop_focus_view()`), it will make sense to include them in the
window switcher so that users can refocus them with keyboard.
This behavior follows KWin.
This commit is contained in:
tokyo4j 2026-01-27 17:59:02 +09:00 committed by Johan Malm
parent 87586104cd
commit a62441ff77
3 changed files with 4 additions and 4 deletions

View file

@ -287,8 +287,8 @@ 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)) {
if (criteria & LAB_VIEW_CRITERIA_NO_DIALOG) {
if (view_is_modal_dialog(view)) {
return false;
}
}