Fixed the window not refocussing onto the sprite with window resize and when a default
sprite is spawned.
Merged conflicts