With the Ostrów agreement , this was decided -- Vytautas became the Grand Duke of Lithuania , while Jogaila retained the rights of an overlord .
This was resolved with the Ostrów agreement -- Jogaila became Grand Prince of Lithuania , while Vytautas retained the rights of an overlord .