compositor: don't get buffer from pending buffer resource too early

Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3795
This commit is contained in:
Kirill Primak 2024-01-19 12:10:39 +03:00
parent 00b869c1a9
commit 4688a371e0
2 changed files with 39 additions and 12 deletions

View file

@ -240,6 +240,9 @@ struct wlr_surface {
struct wl_list synced; // wlr_surface_synced.link
size_t synced_len;
struct wl_resource *pending_buffer_resource;
struct wl_listener pending_buffer_resource_destroy;
};
struct wlr_renderer;