wayland: Use frontend signal handler to quit (#16418)

This commit is contained in:
Colin Kinloch 2024-04-09 00:56:29 +01:00 committed by GitHub
parent 08496b302c
commit 917c2b0d15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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