mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
Implement xdg_toplevel_close event
This commit is contained in:
parent
2c35f05560
commit
1e097b0e1d
@ -580,9 +580,15 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel,
|
|||||||
wl->configured = false;
|
wl->configured = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: implement xdg_toplevel close */
|
static void handle_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel)
|
||||||
|
{
|
||||||
|
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;
|
||||||
|
BIT_SET(wl->input.key_state, KEY_ESC);
|
||||||
|
}
|
||||||
|
|
||||||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||||
handle_toplevel_config,
|
handle_toplevel_config,
|
||||||
|
handle_toplevel_close,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void display_handle_geometry(void *data,
|
static void display_handle_geometry(void *data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user