From be05b66ac323845fb65fe87384b5a8aae0e1fd18 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 29 Dec 2024 11:04:08 +0300 Subject: Hide focus ring for unfocused layout and under interactive move --- src/layout/floating.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/layout/floating.rs') diff --git a/src/layout/floating.rs b/src/layout/floating.rs index d40d1b17..6192d119 100644 --- a/src/layout/floating.rs +++ b/src/layout/floating.rs @@ -962,6 +962,7 @@ impl FloatingSpace { view_rect: Rectangle, scale: Scale, target: RenderTarget, + focus_ring: bool, ) -> Vec> { let mut rv = Vec::new(); @@ -976,7 +977,7 @@ impl FloatingSpace { let active = self.active_window_id.clone(); for (tile, tile_pos) in self.tiles_with_render_positions() { // For the active tile, draw the focus ring. - let focus_ring = Some(tile.window().id()) == active.as_ref(); + let focus_ring = focus_ring && Some(tile.window().id()) == active.as_ref(); rv.extend( tile.render(renderer, tile_pos, scale, focus_ring, target) -- cgit