Electric locks for glass