aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/tile.rs')
-rw-r--r--src/layout/tile.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index 0609583e..faa17840 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -325,9 +325,15 @@ impl<W: LayoutElement> Tile<W> {
view_size: Size<i32, Logical>,
focus_ring: bool,
) -> impl Iterator<Item = TileRenderElement<R>> {
+ let alpha = if self.is_fullscreen {
+ 1.
+ } else {
+ self.window.rules().opacity.unwrap_or(1.).clamp(0., 1.)
+ };
+
let rv = self
.window
- .render(renderer, location + self.window_loc(), scale)
+ .render(renderer, location + self.window_loc(), scale, alpha)
.into_iter()
.map(Into::into);