view: factor out view_impl_init_foreign_toplevel()

This commit is contained in:
John Lindgren 2025-11-12 10:43:22 -05:00 committed by Consolatis
parent 51c2003ed8
commit 5543affe35
5 changed files with 40 additions and 37 deletions

View file

@ -10,6 +10,8 @@
struct view;
void view_impl_init_foreign_toplevel(struct view *view);
void view_impl_map(struct view *view);
void view_impl_unmap(struct view *view);

View file

@ -119,6 +119,7 @@ struct view_impl {
void (*unmap)(struct view *view, bool client_request);
void (*maximize)(struct view *view, enum view_axis maximized);
void (*minimize)(struct view *view, bool minimize);
struct view *(*get_parent)(struct view *self);
struct view *(*get_root)(struct view *self);
void (*append_children)(struct view *self, struct wl_array *children);
bool (*is_modal_dialog)(struct view *self);