Stuttery resizing when OpenGLContext is attached

Has anyone from the juce team had a chance to look at the commit yet? I tried reverting just this commit, but there are dependencies on other changes. The GUI then stops rendering altogether. I also tried rolling the branch back to the point before this change, but then I see that white rectangle again, which I described in this post Native title bar causes white rectangle before window initialisation - General JUCE discussion - JUCE.