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