SDL Fullscreen toggle shrinks Window

Trying to toggle fullscreen using the SDL_WINDOW_FULLSCREEN_DESKTOP flag and switching it to 0 but every time it switches to windowed mode, the screen shrinks vertically by about 10%. Anyone know why?

Uint32 gFullScreen = SDL_WINDOW_FULLSCREEN_DESKTOP;
...

case SDLK_f:
    if(gFullScreen == SDL_WINDOW_FULLSCREEN_DESKTOP){
        gFullScreen = 0;
    }
    else{
        gFullScreen = SDL_WINDOW_FULLSCREEN_DESKTOP;
    }
    SDL_SetWindowFullscreen(gWindow, gFullScreen);
break;

I’m also having this strange bug when I finally upgraded to SDL 2.0.6. This behavior didn’t exist in SDL 2.0.5 and earlier. I was wondering why my screen looked distorted after reverting from Full Screen Desktop mode. Each time it happened, it shrunk.

My only guess was it started popping up when hints were added in case one used the SDL_RenderSetLogicalSIze function (either using letterbox or overscan).

Edit: This bug has now been resolved in 2.0.7.