hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
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 29310476dc620895237d4b56c4c1f38240b4f08a 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/69] HACK: compositor: Re-build view list when framing an
 unassigned surface
 
To avoid skipping repaint for unassigned surface and delaying the frame
callback.
 
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 libweston/compositor.c | 3 +++
 1 file changed, 3 insertions(+)
 
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 631d5ee56..5c11721ef 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -3603,6 +3603,9 @@ surface_frame(struct wl_client *client,
 
     wl_list_insert(surface->pending.frame_callback_list.prev,
                wl_resource_get_link(cb));
+
+    if (!surface->output_mask)
+        weston_compositor_build_view_list(surface->compositor);
 }
 
 static void
-- 
2.20.1