src/xdg.c:180:2: warning: implicit declaration of function 'wlr_xdg_surface_for_each_popup' is invalid in C99 [-Wimplicit-function-declaration]
        wlr_xdg_surface_for_each_popup(view->xdg_surface, iterator, data);
        ^
ld: error: undefined symbol: wlr_xdg_surface_for_each_popup
>>> referenced by xdg.c:180 (src/xdg.c:180)
>>>               labwc.p/src_xdg.c.o:(xdg_toplevel_view_for_each_popup)

Based on 5438cc158a
This commit is contained in:
Jan Beich 2021-03-13 21:07:11 +00:00 committed by Johan Malm
parent 2ee21e9a82
commit ad07acc13c
4 changed files with 11 additions and 23 deletions

View file

@ -169,10 +169,10 @@ xdg_toplevel_view_close(struct view *view)
}
static void
xdg_toplevel_view_for_each_popup(struct view *view,
xdg_toplevel_view_for_each_popup_surface(struct view *view,
wlr_surface_iterator_func_t iterator, void *data)
{
wlr_xdg_surface_for_each_popup(view->xdg_surface, iterator, data);
wlr_xdg_surface_for_each_popup_surface(view->xdg_surface, iterator, data);
}
static void
@ -247,7 +247,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_popup = xdg_toplevel_view_for_each_popup,
.for_each_popup_surface = xdg_toplevel_view_for_each_popup_surface,
.for_each_surface = xdg_toplevel_view_for_each_surface,
.map = xdg_toplevel_view_map,
.move = xdg_toplevel_view_move,