3 ways.
Vent contacts (GRI) allow a certain, albeit limited linear travel
Vent magnets, adding a second magnet on the sash, which should be flipped 180 degrees from the standard magnet orientation
Security screens, which in actuality should be used in conjunction with window contacts.