Update window caption.