diff --git a/include/view.h b/include/view.h index efdcf3fd..45bf42d8 100644 --- a/include/view.h +++ b/include/view.h @@ -554,7 +554,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); -struct view *view_get_root(struct view *view); void view_append_children(struct view *view, struct wl_array *children); /** diff --git a/src/view.c b/src/view.c index e402b626..aa15ef92 100644 --- a/src/view.c +++ b/src/view.c @@ -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) {