[client] wayland: add handling for close event

When the xdg_toplevel receives a close event, call app_handleCloseEvent.
This commit is contained in:
Quantum 2021-01-26 23:28:07 -05:00 committed by Geoffrey McRae
parent 6206d5dec4
commit d0d1b31c10

View File

@ -448,8 +448,14 @@ static void xdgToplevelConfigure(void * data, struct xdg_toplevel * xdgToplevel,
} }
} }
static void xdgToplevelClose(void * data, struct xdg_toplevel * xdgToplevel)
{
app_handleCloseEvent();
}
static const struct xdg_toplevel_listener xdgToplevelListener = { static const struct xdg_toplevel_listener xdgToplevelListener = {
.configure = xdgToplevelConfigure, .configure = xdgToplevelConfigure,
.close = xdgToplevelClose,
}; };
static bool waylandEarlyInit(void) static bool waylandEarlyInit(void)