Use window's color info when reparenting

ref #172