output: listen to renderer destroy in wlr_output_cursor

When a renderer is destroyed, so are all textures. Reset the
texture in that case.
This commit is contained in:
Simon Ser 2024-03-14 13:52:09 +01:00
parent 9e3576426d
commit f0d8377732
2 changed files with 18 additions and 0 deletions

View file

@ -45,6 +45,7 @@ struct wlr_output_cursor {
int32_t hotspot_x, hotspot_y;
struct wlr_texture *texture;
bool own_texture;
struct wl_listener renderer_destroy;
struct wl_list link;
};