Privatize view_append_children()

This commit is contained in:
Johan Malm 2025-09-26 19:21:34 +01:00 committed by Johan Malm
parent 9ec49144ac
commit 60d536304b
2 changed files with 9 additions and 10 deletions

View file

@ -553,7 +553,6 @@ void view_move_to_output(struct view *view, struct output *output);
void view_move_to_front(struct view *view);
void view_move_to_back(struct view *view);
void view_append_children(struct view *view, struct wl_array *children);
/**
* view_get_modal_dialog() - returns any modal dialog found among this

View file

@ -808,6 +808,15 @@ _minimize(struct view *view, bool minimized)
}
}
static void
view_append_children(struct view *view, struct wl_array *children)
{
assert(view);
if (view->impl->append_children) {
view->impl->append_children(view, children);
}
}
static void
minimize_sub_views(struct view *view, bool minimized)
{
@ -2337,15 +2346,6 @@ view_move_to_back(struct view *view)
desktop_update_top_layer_visibility(view->server);
}
void
view_append_children(struct view *view, struct wl_array *children)
{
assert(view);
if (view->impl->append_children) {
view->impl->append_children(view, children);
}
}
struct view *
view_get_modal_dialog(struct view *view)
{