mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] wayland: add handling for close event
When the xdg_toplevel receives a close event, call app_handleCloseEvent.
This commit is contained in:
parent
6206d5dec4
commit
d0d1b31c10
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user