Fixed a bug when switching windowsThe canvas no longer looks weird when you minimize it and switch to it again.