aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-10-13 13:23:29 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-10-15 09:04:16 +0300
commite420bb5ad7cef528edff58fc76ff878c4e4310ac (patch)
tree2a504df9704179943e206a129c659276e7df2c92
parent4cb4d0fa923b993c20cf97c182abe9bd4f7047b1 (diff)
downloadniri-e420bb5ad7cef528edff58fc76ff878c4e4310ac.tar.gz
niri-e420bb5ad7cef528edff58fc76ff878c4e4310ac.tar.bz2
niri-e420bb5ad7cef528edff58fc76ff878c4e4310ac.zip
layout/tile: Fade out border for fullscreen
-rw-r--r--src/layout/tile.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index 8e18445c..1e6f1a21 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -410,8 +410,7 @@ impl<W: LayoutElement> Tile<W> {
let draw_border_with_background = rules
.draw_border_with_background
- .unwrap_or_else(|| !self.window.has_ssd())
- && fullscreen_progress < 1.;
+ .unwrap_or_else(|| !self.window.has_ssd());
let border_width = self.visual_border_width().unwrap_or(0.);
// Do the inverse of tile_size() in order to handle the unfullscreen animation for windows
@@ -438,7 +437,7 @@ impl<W: LayoutElement> Tile<W> {
),
radius,
self.scale,
- 1.,
+ 1. - fullscreen_progress as f32,
);
let radius = if self.visual_border_width().is_some() {