Hopefully solved the problem of waiting for windows to draw themselves once and for...