1From bdb4cda8609e3da959d7fb59a0386d958ba3598b Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Tue, 22 Feb 2022 09:51:29 +0800
4Subject: [PATCH 55/79] HACK: compositor: Re-build view list when committing an
5 unassigned surface
6
7To avoid skipping repaint for unassigned surface.
8
9Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
10---
11 libweston/compositor.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/libweston/compositor.c b/libweston/compositor.c
15index 9ef5669..6d8a878 100644
16--- a/libweston/compositor.c
17+++ b/libweston/compositor.c
18@@ -4038,6 +4038,10 @@ weston_surface_commit(struct weston_surface *surface)
19
20 	weston_surface_commit_subsurface_order(surface);
21
22+	/* HACK: Assign outputs */
23+	if (!surface->output_mask)
24+		weston_compositor_build_view_list(surface->compositor, NULL);
25+
26 	weston_surface_schedule_repaint(surface);
27 }
28
29--
302.20.1
31
32