[client] wayland: add handling for close event

When the xdg_toplevel receives a close event, call app_handleCloseEvent.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 6206d5dec4
commit d0d1b31c10
1 file changed
+6
+6
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 = {
.configure = xdgToplevelConfigure,
.close = xdgToplevelClose,
};
static bool waylandEarlyInit(void)