Disable 'maximise window' button in VST3 plugins on Mac


I’m wondering if there is an easy way to disable the green ‘maximise window’ button while still allowing the corner resizer in VST3 plugins on Mac? I’ve currently added a bit of code which will cause JuceVST3Editor::canResize() to return kResultFalse based on a flag set in the AudioPluginEditor. This seems to have the desired effect in Cubase but not Reaper and I’m not sure of any potential undesired effects this may have downstream.

Does anyone know how I can better solve the problem?



I don’t think there’s a comprehensive solution - the host controls the window so anything beyond the scope of the VST3 API is not guaranteed to work.