shell: Add alpha to weston_curtain_create

Not all solid-colour views want to be opaque: sometimes we use them with
non-opaque alpha values in order to shade views underneath them.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2022-01-18 18:17:17 +00:00
parent d21563360a
commit e81b8d7cc9
5 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -2069,7 +2069,7 @@ create_black_surface(struct weston_compositor *ec,
float x, float y, int w, int h)
{
struct weston_curtain_params curtain_params = {
.r = 0.0, .g = 0.0, .b = 0.0,
.r = 0.0, .g = 0.0, .b = 0.0, .a = 1.0,
.x = x, .y = y,
.width = w, .height = h,
.surface_committed = black_surface_committed,