From 4688a371e04787f5bb059e80b5de506f0a8f00ff Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 19 Jan 2024 12:10:39 +0300 Subject: compositor: don't get buffer from pending buffer resource too early Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3795 --- include/wlr/types/wlr_compositor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 2005a949..39bc3e21 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -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; -- cgit v1.2.3