Fix border/focus ring options not applying right away
Browse files at this commit3748f6cd6a044ec56c461c20f07fac9197ad1119Parent: 73cc0071 changed file +2 -2
- src/layout/tile.rs +2 -2
src/layout/tile.rsmodified+2 -2
| @@ -129,6 +129,8 @@ impl<W: LayoutElement> Tile<W> { | |||
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | pub fn update_config(&mut self, options: Rc<Options>) { | 131 | pub fn update_config(&mut self, options: Rc<Options>) { |
| 132 | + self.options = options; | ||
| 133 | + | ||
| 132 | let rules = self.window.rules(); | 134 | let rules = self.window.rules(); |
| 133 | 135 | ||
| 134 | let border_config = rules.border.resolve_against(self.options.border); | 136 | let border_config = rules.border.resolve_against(self.options.border); |
| @@ -138,8 +140,6 @@ impl<W: LayoutElement> Tile<W> { | |||
| 138 | .focus_ring | 140 | .focus_ring |
| 139 | .resolve_against(self.options.focus_ring.into()); | 141 | .resolve_against(self.options.focus_ring.into()); |
| 140 | self.focus_ring.update_config(focus_ring_config.into()); | 142 | self.focus_ring.update_config(focus_ring_config.into()); |
| 141 | - | ||
| 142 | - self.options = options; | ||
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | pub fn update_shaders(&mut self) { | 145 | pub fn update_shaders(&mut self) { |