From d0dc464f1595856b00337e2281cc2dc34b9b89ff Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Thu, 13 Jul 2023 12:58:04 +0200
Subject: [PATCH] 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
---
ivi-shell/ivi-layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index cb535574..76f40513 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -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