mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Privatize private view_get_root()
This commit is contained in:
parent
27f3097f8f
commit
040e25f38e
2 changed files with 10 additions and 11 deletions
20
src/view.c
20
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue