Reparenting, fixes gray java windows