Make overlay positioning more robust

Previously we would either switch anchor or snap, now we first try switching
anchor (if desired) and then snap to window regardless.
a055a4c163Conrad Irwin committed on 12/13/2023, 4:28:58 AMparentfa36adb
1 file changedLine totals unavailable