Open the locks fully on the window. Push down a double-hung window or move the crank on a casement window to pull it in. While holding down the window or after moving the crank until it stops, push closed the locks.
Tighten the screws on all of the window hardware, including the locks and crank handle.
Install the adjustment insert, often provided by the window manufacturer. The inserts are meant to be installed if the window does not close properly after a home settles. The manufacturer or dealer can provide specific instructions on installing the insert. It is sometimes found on the bottom hinge and, when installed, adjusts the sash.
Open the window fully. Clean along the sides and underneath the frame with a cloth moistened with warm water and a few drops of a mild liquid soap. Dry the frame thoroughly before closing the window.
Look inside and outside of the bay window for any removable panels. Most bay windows are held up by cables or another support. If you remove the panels, a nut and bolt is usually located underneath. Turn the nut to raise the window if the frame is sagging. Place a level on the top of the window and keep adjusting the window until it's level. Only adjust the side of the window where it does not appear level.