scrolling: Don't forget to call tab_indicator.update_shaders()
Browse files at this commit9d62b94688d0a557e65c30770b8b9d3da3bf9823Parent: 4d295411 changed file +10 -2
- src/layout/scrolling.rs +10 -2
src/layout/scrolling.rsmodified+10 -2
| @@ -336,8 +336,8 @@ impl<W: LayoutElement> ScrollingSpace<W> { | |||
| 336 | } | 336 | } |
| 337 | 337 | ||
| 338 | pub fn update_shaders(&mut self) { | 338 | pub fn update_shaders(&mut self) { |
| 339 | - for tile in self.tiles_mut() { | 339 | + for col in &mut self.columns { |
| 340 | - tile.update_shaders(); | 340 | + col.update_shaders(); |
| 341 | } | 341 | } |
| 342 | } | 342 | } |
| 343 | 343 | ||
| @@ -4056,6 +4056,14 @@ impl<W: LayoutElement> Column<W> { | |||
| 4056 | } | 4056 | } |
| 4057 | } | 4057 | } |
| 4058 | 4058 | ||
| 4059 | + pub fn update_shaders(&mut self) { | ||
| 4060 | + for tile in &mut self.tiles { | ||
| 4061 | + tile.update_shaders(); | ||
| 4062 | + } | ||
| 4063 | + | ||
| 4064 | + self.tab_indicator.update_shaders(); | ||
| 4065 | + } | ||
| 4066 | + | ||
| 4059 | pub fn advance_animations(&mut self) { | 4067 | pub fn advance_animations(&mut self) { |
| 4060 | if let Some(move_) = &mut self.move_animation { | 4068 | if let Some(move_) = &mut self.move_animation { |
| 4061 | if move_.anim.is_done() { | 4069 | if move_.anim.is_done() { |