Clamp overlays to the render window (with some padding), reset their positions when the render window changes sizes, and add a setting to enable moving the overlays (off by default, .ini only for now).
std::copy
std::copy_n