From 7ec5bf6b10d2a7e1d9cdfdfeed44ac6db8bdcc99 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Apr 2021 00:07:31 +0200 Subject: backend: introduce wlr_backend_finish This new functions cleans up the common backend state. While this currently only emits the destroy signal, this will also clean up the renderer and allocator in upcoming patches. --- backend/x11/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/x11') diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 8999912d..17b8b7c0 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -191,7 +191,7 @@ static void backend_destroy(struct wlr_backend *backend) { wlr_input_device_destroy(&x11->keyboard_dev); - wlr_signal_emit_safe(&backend->events.destroy, backend); + wlr_backend_finish(backend); if (x11->event_source) { wl_event_source_remove(x11->event_source); -- cgit v1.2.3