aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-02 16:44:34 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-02 19:36:03 +0200
commit46c83cbf3daf6c38c70d0dcb5492e164b6c8ab29 (patch)
treeb0e14258c677fb5d5ea7ca9d738419b28c2bf596 /include
parent7720ce7827e8bdaaf42f72fb29ecf91a2d3c2294 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/backend/headless.h1
1 files changed, 1 insertions, 0 deletions
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;
};