From 4f334a355f5064244c05071784ec234f9d4e872b Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Mon, 8 Aug 2022 15:46:35 +0800 Subject: [PATCH 75/92] HACK: compositor: Allow mapping bufferless subsurfaces The current qtwayland needs it. Signed-off-by: Jeffy Chen --- libweston/compositor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libweston/compositor.c b/libweston/compositor.c index a99c8b8..ca5e405 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -4888,6 +4888,13 @@ subsurface_committed(struct weston_surface *surface, int32_t dx, int32_t dy) weston_surface_map(surface); } + /** + * HACK: Allow mapping bufferless subsurfaces + * See: https://bugreports.qt.io/browse/QTBUG-86229 + */ + if (!weston_surface_is_mapped(surface)) + weston_surface_map(surface); + /* Cannot call weston_view_update_transform() here, because that would * call it also for the parent surface, which might not be mapped yet. * That would lead to inconsistent state, where the window could never -- 2.20.1