forge
Explore
Log in

Don't you dare go Hollow

Fix border/focus ring options not applying right away

Browse files at this commit

3748f6cd6a044ec56c461c20f07fac9197ad1119Ivan MolodetskikhParent: 73cc007
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_ring140 .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) {