Custom resolution remains after exiting

I am running winx64 RA at a custom resolution with video_windowed_fullscreen set to false (because if set to true, the video_fullscreen_x and y values are ignored and RA retains the OS resolution).

The issue here is that when I exit RA, the resolution doesn’t go back to my desktop’s, it remains at the video_fullscreen_x/y values.

Any way to fix that?

I think this is a legit bug. It only happens with the gl driver, not any d3d or vulkan.

I have found a temporary solution with HRC combined with AHK.

Having the same bug when using super resolutions. Can you please explain your temporary solution to me?