mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
wayland: Use frontend signal handler to quit (#16418)
This commit is contained in:
parent
08496b302c
commit
917c2b0d15
@ -148,7 +148,10 @@ void xdg_toplevel_handle_configure_common(gfx_ctx_wayland_data_t *wl,
|
||||
}
|
||||
|
||||
void xdg_toplevel_handle_close(void *data,
|
||||
struct xdg_toplevel *xdg_toplevel) { command_event(CMD_EVENT_QUIT, NULL); }
|
||||
struct xdg_toplevel *xdg_toplevel)
|
||||
{
|
||||
frontend_driver_set_signal_handler_state(1);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBDECOR_H
|
||||
void libdecor_frame_handle_configure_common(struct libdecor_frame *frame,
|
||||
@ -222,7 +225,10 @@ void libdecor_frame_handle_configure_common(struct libdecor_frame *frame,
|
||||
}
|
||||
|
||||
void libdecor_frame_handle_close(struct libdecor_frame *frame,
|
||||
void *data) { command_event(CMD_EVENT_QUIT, NULL); }
|
||||
void *data)
|
||||
{
|
||||
frontend_driver_set_signal_handler_state(1);
|
||||
}
|
||||
void libdecor_frame_handle_commit(struct libdecor_frame *frame,
|
||||
void *data) { }
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user