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.
This commit is contained in:
Simon Ser 2020-05-02 16:44:34 +02:00 committed by Drew DeVault
parent 7720ce7827
commit 46c83cbf3d
2 changed files with 14 additions and 1 deletions

View file

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