diff --git a/gfx/common/wayland_common.c b/gfx/common/wayland_common.c index 0670f44615..e07231293d 100644 --- a/gfx/common/wayland_common.c +++ b/gfx/common/wayland_common.c @@ -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