From 1cede8922f29af8a7e60c46ee6e516112c9ee1aa Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 5 Oct 2025 09:49:49 +0300 Subject: layout/tile: Fade out focus ring for fullscreen --- src/layout/tile.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/layout/tile.rs b/src/layout/tile.rs index b574b7a2..1aab3e0d 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -466,7 +466,7 @@ impl Tile { view_rect, radius, self.scale, - 1., + 1. - fullscreen_progress as f32, ); self.fullscreen_backdrop.resize(animated_tile_size); @@ -1187,7 +1187,10 @@ impl Tile { }); let rv = rv.chain(elem.into_iter().flatten()); - let elem = focus_ring.then(|| self.focus_ring.render(renderer, location).map(Into::into)); + // Hide the focus ring when fullscreened. It's not normally visible anyway due to being + // outside the monitor, but it is visible in the overview (which is a bit weird). + let elem = (focus_ring && fullscreen_progress < 1.) + .then(|| self.focus_ring.render(renderer, location).map(Into::into)); let rv = rv.chain(elem.into_iter().flatten()); rv.chain(self.shadow.render(renderer, location).map(Into::into)) -- cgit