mirror of
https://github.com/labwc/labwc.git
synced 2026-03-07 04:33:54 -05:00
view_impl: add for_each_surface()
This commit is contained in:
parent
763f5c3455
commit
16c3869fca
5 changed files with 40 additions and 36 deletions
|
|
@ -144,6 +144,13 @@ xdg_toplevel_view_close(struct view *view)
|
|||
wlr_xdg_toplevel_send_close(view->xdg_surface);
|
||||
}
|
||||
|
||||
static void
|
||||
xdg_toplevel_view_for_each_surface(struct view *view,
|
||||
wlr_surface_iterator_func_t iterator, void *data)
|
||||
{
|
||||
wlr_xdg_surface_for_each_surface(view->xdg_surface, iterator, data);
|
||||
}
|
||||
|
||||
static struct border
|
||||
xdg_shell_border(struct view *view)
|
||||
{
|
||||
|
|
@ -203,6 +210,7 @@ xdg_toplevel_view_unmap(struct view *view)
|
|||
static const struct view_impl xdg_toplevel_view_impl = {
|
||||
.configure = xdg_toplevel_view_configure,
|
||||
.close = xdg_toplevel_view_close,
|
||||
.for_each_surface = xdg_toplevel_view_for_each_surface,
|
||||
.map = xdg_toplevel_view_map,
|
||||
.unmap = xdg_toplevel_view_unmap,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue