diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-04 11:11:01 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-04 11:11:01 +0400 |
| commit | 3748f6cd6a044ec56c461c20f07fac9197ad1119 (patch) | |
| tree | 7fd08adf6cb52e8aa92a50de5178e25631eaba55 | |
| parent | 73cc0079d628e66b1d64168ed1a10b13b23ab5d0 (diff) | |
| download | niri-3748f6cd6a044ec56c461c20f07fac9197ad1119.tar.gz niri-3748f6cd6a044ec56c461c20f07fac9197ad1119.tar.bz2 niri-3748f6cd6a044ec56c461c20f07fac9197ad1119.zip | |
Fix border/focus ring options not applying right away
| -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 be9829a9..68ee248e 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -129,6 +129,8 @@ impl<W: LayoutElement> Tile<W> { } pub fn update_config(&mut self, options: Rc<Options>) { + self.options = options; + let rules = self.window.rules(); let border_config = rules.border.resolve_against(self.options.border); @@ -138,8 +140,6 @@ impl<W: LayoutElement> Tile<W> { .focus_ring .resolve_against(self.options.focus_ring.into()); self.focus_ring.update_config(focus_ring_config.into()); - - self.options = options; } pub fn update_shaders(&mut self) { |
