Fixed focus not being updated after a window is removed.

Thanks Reiser for picking up on this.