hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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