Privatize private view_get_root()

This commit is contained in:
Johan Malm 2025-09-26 17:46:20 +01:00 committed by Johan Malm
parent 27f3097f8f
commit 040e25f38e
2 changed files with 10 additions and 11 deletions

View file

@ -240,6 +240,16 @@ view_matches_query(struct view *view, struct view_query *query)
return true;
}
static struct view *
view_get_root(struct view *view)
{
assert(view);
if (view->impl->get_root) {
return view->impl->get_root(view);
}
return view;
}
static bool
matches_criteria(struct view *view, enum lab_view_criteria criteria)
{
@ -2327,16 +2337,6 @@ view_move_to_back(struct view *view)
desktop_update_top_layer_visibility(view->server);
}
struct view *
view_get_root(struct view *view)
{
assert(view);
if (view->impl->get_root) {
return view->impl->get_root(view);
}
return view;
}
void
view_append_children(struct view *view, struct wl_array *children)
{