mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -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
|
|
@ -62,6 +62,13 @@ _close(struct view *view)
|
|||
wlr_xwayland_surface_close(view->xwayland_surface);
|
||||
}
|
||||
|
||||
static void
|
||||
for_each_surface(struct view *view, wlr_surface_iterator_func_t iterator,
|
||||
void *data)
|
||||
{
|
||||
wlr_surface_for_each_surface(view->surface, iterator, data);
|
||||
}
|
||||
|
||||
static bool
|
||||
want_deco(struct view *view)
|
||||
{
|
||||
|
|
@ -119,6 +126,7 @@ unmap(struct view *view)
|
|||
static const struct view_impl xwl_view_impl = {
|
||||
.configure = configure,
|
||||
.close = _close,
|
||||
.for_each_surface = for_each_surface,
|
||||
.map = map,
|
||||
.unmap = unmap,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue