diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-08 11:11:06 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-08 11:11:06 +0400 |
| commit | 092cf6cfaf9c03303bd04e44df4374b79f550f21 (patch) | |
| tree | 044624f47c1459779c4cb243c0d6a4722cf20286 | |
| parent | 236f96e6764f4157050c5294df1bb15b9f1eac37 (diff) | |
| download | niri-092cf6cfaf9c03303bd04e44df4374b79f550f21.tar.gz niri-092cf6cfaf9c03303bd04e44df4374b79f550f21.tar.bz2 niri-092cf6cfaf9c03303bd04e44df4374b79f550f21.zip | |
solid_color: Fix alpha handling
It wasn't getting redrawn on alpha changes.
| -rw-r--r-- | src/render_helpers/solid_color.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render_helpers/solid_color.rs b/src/render_helpers/solid_color.rs index 83923dbb..5ce29f47 100644 --- a/src/render_helpers/solid_color.rs +++ b/src/render_helpers/solid_color.rs @@ -146,7 +146,7 @@ impl Element for SolidColorRenderElement { } fn alpha(&self) -> f32 { - 1.0 + self.color[3] } fn kind(&self) -> Kind { |
