In the constructor of my main window, which inherits from DocumentWindow, I set some size constraints using the following code:
ComponentBoundsConstrainer* constrainer = getConstrainer();
constrainer->setMinimumWidth(GlobalSettings::kMinWindowWidth);
constrainer->setMinimumHeight(GlobalSettings::kMinWindowHeight);
This works fine, unless the user is using the “Split View” functionality in macOS (by long pressing the maximise button). In this mode, it looks like all constraints are ignored.
I dont really know how to fix this. Disabling Split View entirely would not be a bad option. But I need to keep the full screen mode, so I cant just disable the maximise button.