From 9a234265511a766bf2189c145fef67bcad4d4cdb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 14 Nov 2025 15:58:45 +0300 Subject: focus-ring: Fix first frame draw of border rounded corners How was this a thing until now? --- src/layout/focus_ring.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/layout/focus_ring.rs b/src/layout/focus_ring.rs index cc0771a5..5066a33b 100644 --- a/src/layout/focus_ring.rs +++ b/src/layout/focus_ring.rs @@ -69,6 +69,7 @@ impl FocusRing { ) { let width = self.config.width; self.full_size = win_size + Size::from((width, width)).upscale(2.); + self.is_border = is_border; let color = if is_urgent { self.config.urgent_color @@ -103,7 +104,7 @@ impl FocusRing { GradientRelativeTo::WorkspaceView => view_rect, }; - let rounded_corner_border_width = if self.is_border { + let rounded_corner_border_width = if is_border { // HACK: increase the border width used for the inner rounded corners a tiny bit to // reduce background bleed. let extra = if self.thicken_corners { 0.5 } else { 0. }; @@ -213,8 +214,6 @@ impl FocusRing { alpha, ); } - - self.is_border = is_border; } pub fn render( -- cgit