diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-12 09:34:54 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-12 09:34:54 +0400 |
| commit | 18f06a7acd79feb16dc667b68a1ffd0d59e234c8 (patch) | |
| tree | 38fdaa7786d5092fcf8782a19a849c4074c21316 /src/layout/tile.rs | |
| parent | 6e2307301991a187b8d4a28cdbbf7a49d33039d5 (diff) | |
| download | niri-18f06a7acd79feb16dc667b68a1ffd0d59e234c8.tar.gz niri-18f06a7acd79feb16dc667b68a1ffd0d59e234c8.tar.bz2 niri-18f06a7acd79feb16dc667b68a1ffd0d59e234c8.zip | |
Fix border getting default values for focus ring
Diffstat (limited to 'src/layout/tile.rs')
| -rw-r--r-- | src/layout/tile.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs index 62f79a77..54c38d15 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -62,7 +62,7 @@ impl<W: LayoutElement> Tile<W> { pub fn new(window: W, options: Rc<Options>) -> Self { Self { window, - border: FocusRing::new(options.border), + border: FocusRing::new(options.border.into()), focus_ring: FocusRing::new(options.focus_ring), is_fullscreen: false, // FIXME: up-to-date fullscreen right away, but we need size. fullscreen_backdrop: SolidColorBuffer::new((0, 0), [0., 0., 0., 1.]), @@ -73,7 +73,7 @@ impl<W: LayoutElement> Tile<W> { } pub fn update_config(&mut self, options: Rc<Options>) { - self.border.update_config(options.border); + self.border.update_config(options.border.into()); self.focus_ring.update_config(options.focus_ring); self.options = options; } |
