1From c0757c5bf57f4ba4566795682940767fec5e95b8 Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Mon, 8 Aug 2022 15:46:35 +0800 4Subject: [PATCH 76/79] HACK: compositor: Allow mapping bufferless subsurfaces 5 6The current qtwayland needs it. 7 8Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 9--- 10 libweston/compositor.c | 6 ++++++ 11 1 file changed, 6 insertions(+) 12 13diff --git a/libweston/compositor.c b/libweston/compositor.c 14index fc8cef3..79a72bd 100644 15--- a/libweston/compositor.c 16+++ b/libweston/compositor.c 17@@ -4493,6 +4493,12 @@ subsurface_committed(struct weston_surface *surface, int32_t dx, int32_t dy) 18 if (!weston_surface_is_mapped(surface)) { 19 surface->is_mapped = surface->buffer_ref.buffer != NULL; 20 21+ /** 22+ * HACK: Allow mapping bufferless subsurfaces 23+ * See: https://bugreports.qt.io/browse/QTBUG-86229 24+ */ 25+ surface->is_mapped = true; 26+ 27 /* Cannot call weston_view_update_transform(), 28 * because that would call it also for the parent surface, 29 * which might not be mapped yet. That would lead to 30-- 312.20.1 32 33