VST2 editor blank after minimizing


I have a vst host that wraps a vst plugin to make it a standalone app. After updating juce to 5.4 i’m now seeing an issue on OSX where if I minimize the app and the bring it back up, the plugin editor is completely black.

I can get it to come back by manually moving the position of the window. And I have now added a hack to manually force it to re-fresh the window by overriding broughtToFront() method and simulating a position move, but this seems not ideal as there’s a bit of a pause before you see the contents of the window after the frame pops back up and it is not smooth like other apps are when un-minimizing.

Any help is appreciated. Thanks!