Silly question (your answer will probably be yes): same resolution, ok; but same window size?
It’s when you resize the window when the black spaces appear. As far as I know, the game’s resolution is fixed, but the size of the window is stored in the settings according to what you’ve set.