linuxOS_AP05/buildroot/package/weston/0055-HACK-compositor-Re-build-view-list-when-committing-a.patch
2025-06-02 13:59:07 +08:00

32 lines
897 B
Diff

From bf36d2e7f53fc1c9feefceb217f480e8d73f66c9 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Tue, 22 Feb 2022 09:51:29 +0800
Subject: [PATCH 55/74] HACK: compositor: Re-build view list when committing an
unassigned surface
To avoid skipping repaint for unassigned surface.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
libweston/compositor.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 9ef5669..6d8a878 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -4038,6 +4038,10 @@ weston_surface_commit(struct weston_surface *surface)
weston_surface_commit_subsurface_order(surface);
+ /* HACK: Assign outputs */
+ if (!surface->output_mask)
+ weston_compositor_build_view_list(surface->compositor, NULL);
+
weston_surface_schedule_repaint(surface);
}
--
2.20.1