Keep window title up-to-date