Władysław II Jagiełło
In connection with his preparation to take power in Masovia, Janusz was sent to Kraków, where he resided at the court of King Władysław II Jagiełło.