From 46c83cbf3daf6c38c70d0dcb5492e164b6c8ab29 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 2 May 2020 16:44:34 +0200 Subject: backend/headless: handle renderer destroy When the headless backend uses an already-existing renderer, it doesn't have ownership over the renderer. When the renderer is destroyed, the headless backend needs to destroy itself. --- include/backend/headless.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/backend') diff --git a/include/backend/headless.h b/include/backend/headless.h index 564cb154..5681c2bd 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -17,6 +17,7 @@ struct wlr_headless_backend { size_t last_output_num; struct wl_list input_devices; struct wl_listener display_destroy; + struct wl_listener renderer_destroy; bool started; GLenum internal_format; }; -- cgit v1.2.3