diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-10-13 13:23:29 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-10-15 09:04:16 +0300 |
| commit | e420bb5ad7cef528edff58fc76ff878c4e4310ac (patch) | |
| tree | 2a504df9704179943e206a129c659276e7df2c92 | |
| parent | 4cb4d0fa923b993c20cf97c182abe9bd4f7047b1 (diff) | |
| download | niri-e420bb5ad7cef528edff58fc76ff878c4e4310ac.tar.gz niri-e420bb5ad7cef528edff58fc76ff878c4e4310ac.tar.bz2 niri-e420bb5ad7cef528edff58fc76ff878c4e4310ac.zip | |
layout/tile: Fade out border for fullscreen
| -rw-r--r-- | src/layout/tile.rs | 5 |
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() { |
