Add view_impl .close

This commit is contained in:
Johan Malm 2020-09-02 21:00:28 +01:00
parent b99977368d
commit 625722cb66
4 changed files with 19 additions and 4 deletions

View file

@ -137,8 +137,14 @@ static void xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
(uint32_t)geo.height);
}
static void xdg_toplevel_view_close(struct view *view)
{
wlr_xdg_toplevel_send_close(view->xdg_surface);
}
static const struct view_impl xdg_toplevel_view_impl = {
.configure = xdg_toplevel_view_configure,
.close = xdg_toplevel_view_close,
};
void xdg_surface_new(struct wl_listener *listener, void *data)