From 60d536304bd72d818b40ac9ecb0a056c25fabaa8 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Fri, 26 Sep 2025 19:21:34 +0100 Subject: [PATCH] Privatize view_append_children() --- include/view.h | 1 - src/view.c | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/include/view.h b/include/view.h index 0970bb02..ba662550 100644 --- a/include/view.h +++ b/include/view.h @@ -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 diff --git a/src/view.c b/src/view.c index 29736b80..792401cf 100644 --- a/src/view.c +++ b/src/view.c @@ -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) {