aboutsummaryrefslogtreecommitdiff
path: root/src/layout/floating.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-29 11:04:08 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commitbe05b66ac323845fb65fe87384b5a8aae0e1fd18 (patch)
treedec5d8c3ca847e2bb27369b628fa662f32190ba1 /src/layout/floating.rs
parentd1998ae3fa28d8c7034f0b3ba188c355fc146e5c (diff)
downloadniri-be05b66ac323845fb65fe87384b5a8aae0e1fd18.tar.gz
niri-be05b66ac323845fb65fe87384b5a8aae0e1fd18.tar.bz2
niri-be05b66ac323845fb65fe87384b5a8aae0e1fd18.zip
Hide focus ring for unfocused layout and under interactive move
Diffstat (limited to 'src/layout/floating.rs')
-rw-r--r--src/layout/floating.rs3
1 files changed, 2 insertions, 1 deletions
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<W: LayoutElement> FloatingSpace<W> {
view_rect: Rectangle<f64, Logical>,
scale: Scale<f64>,
target: RenderTarget,
+ focus_ring: bool,
) -> Vec<FloatingSpaceRenderElement<R>> {
let mut rv = Vec::new();
@@ -976,7 +977,7 @@ impl<W: LayoutElement> FloatingSpace<W> {
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)