Taken care of window resizing.

I get an exception on swap_chain when window is reactivated after being minimized. Looking into this next.