Actually handle resizing of windows somewhat