that was too quick, fgStructure.CurrentWindow can be NULL when glutGetting window