Multimonitor vsync behavior

Hello, I have an issue with OpenGL vsync using the nvidia driver on a multimonitor setup with mismatched refresh rates.

What I’d like it to do (as when using open-source drivers):

OpenGL should sync to the monitor it is displayed on. If I move the window from one monitor to another with a different refresh rate, vsync rate should change accordingly.

What I have with the nvidia driver:

Vsync is locked to one monitor (DP-0) in my case. If I set the environment variable “__GL_SYNC_DISPLAY_DEVICE”, I can choose which monitor to sync to. But there is no way to dynamically change it for a running application (and it’s tedious).

Is there a way to make it work as I’d like to?