Resizing the screen causes the renderer to flicker a lot. It shouldn't do that. The flickering seems to be caused by `self.surface.configure` in the `resize` function called in `State` of the `renderer.rs` file.