The window guy pretty much just bolted the window back into its previous position, and had to run to meet another customer. Apparently he was running 4 hours late. Oh, well.
I ended up filling the cavity between the frame and wall with expanding foam (yup, the canister I’m holding in the picture). After that, a bit of pointing and a bead of sealant. Just in time for the rain storm that followed.