ivi-layout: Use weston_view_set_alpha()

Stop setting view->alpha directly. Use weston_view_set_alpha() to also
apply damage as required.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
Philipp Zabel 2023-07-13 12:58:04 +02:00 committed by Marius Vlad
parent 2df127c180
commit d0dc464f15

View File

@ -370,7 +370,7 @@ update_opacity(struct ivi_layout_layer *ivilayer,
double layer_alpha = wl_fixed_to_double(ivilayer->prop.opacity);
double surf_alpha = wl_fixed_to_double(ivisurf->prop.opacity);
view->alpha = layer_alpha * surf_alpha;
weston_view_set_alpha(view, layer_alpha * surf_alpha);
}
static void