In the Battle of Głogów  the Imperial forces were under command of Holy Roman Emperor and the fourth and last ruler of the what dynasty?
Battle of Głogów The Battle of Głogów or Defense of Głogów (German: "Schlacht bei Glogau" , Polish: "Obrona Głogowa" ) was fought on 24 August 1109 at the Silesian town of Głogów, between the Kingdom of Poland and the Holy Roman Empire. Recorded by the medieval chronicler Gallus Anonymus it is one of the most well known battles in Polish history. The Polish forces were led by Duke Bolesław III Wrymouth, while the Imperial forces were under command of King Henry V of Germany. Bolesław was victorious.
John IV, Duke of Krnov John IV, Duke of Krnov (also known as "John IV of Opava-Racibórz" or "John the Elder"; ; German: "Johann IV. von Jägerndorf" or "Johann III. von Troppau-Ratibor" ;  1440 – 1483 in Wodzisław Śląski) was a member of the Opavian branch of the Bohemian Přemyslid dynasty. He was Duke of Krnov from 1452 to 1474 and Duke of Wodzisław Śląski from 1464 until his death.