When removing a temporary (menu, text, popup) window, the code was erasing it from memory and then refreshing the screen. This is unnecessary, as we're refreshing all the windows anyway.