diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-29 11:04:08 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | be05b66ac323845fb65fe87384b5a8aae0e1fd18 (patch) | |
| tree | dec5d8c3ca847e2bb27369b628fa662f32190ba1 /src/layout/scrolling.rs | |
| parent | d1998ae3fa28d8c7034f0b3ba188c355fc146e5c (diff) | |
| download | niri-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/scrolling.rs')
| -rw-r--r-- | src/layout/scrolling.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 1a8c8f5f..73e55451 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -2180,6 +2180,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { renderer: &mut R, scale: Scale<f64>, target: RenderTarget, + focus_ring: bool, ) -> Vec<ScrollingSpaceRenderElement<R>> { let mut rv = vec![]; @@ -2208,7 +2209,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { let mut first = true; for (tile, tile_pos) in self.tiles_with_render_positions() { // For the active tile (which comes first), draw the focus ring. - let focus_ring = first; + let focus_ring = focus_ring && first; first = false; rv.extend( |
