mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Hide focus ring for unfocused layout and under interactive move
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user