They both sat near the window, and both leaned their arms on the sill, and both inclined their heads towards the open lattice. 
They both sat near the window, and leaned their arms on the sill by the open lattice. 