1 From 434e7f0e87c7728ad2c9056ee4cf42686db2d5f2 Mon Sep 17 00:00:00 2001
2 From: Michael Tretter <m.tretter@pengutronix.de>
3 Date: Thu, 23 Aug 2018 16:58:47 +0200
4 Subject: [PATCH 3/3] compositor: do not request repaint in output_enable
6 When enabling a weston_output, the compositor damages the entire output,
7 to ensure that the entire output is redrawn. However, this triggers a
8 repaint, which might happen before anything is actually drawn. The
9 result is a black frame before the shell is displayed.
11 Damage the entire output region, but do not trigger the repaint when
12 enabling a weston_output.
14 Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
16 %% original patch: 0001-compositor-do-not-request-repaint-in-output_enable.patch
18 libweston/compositor.c | 4 +++-
19 1 file changed, 3 insertions(+), 1 deletion(-)
21 diff --git a/libweston/compositor.c b/libweston/compositor.c
22 index 1670c50..a983e60 100644
23 --- a/libweston/compositor.c
24 +++ b/libweston/compositor.c
25 @@ -6762,7 +6762,9 @@ weston_output_enable(struct weston_output *output)
26 weston_output_init_zoom(output);
28 weston_output_init_geometry(output, x, y);
29 - weston_output_damage(output);
30 + pixman_region32_union(&c->primary_plane.damage,
31 + &c->primary_plane.damage,
34 wl_list_init(&output->animation_list);
35 wl_list_init(&output->feedback_list);