Window size contraints not taken into account in macOS Split View

gui
#1

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.

0 Likes

#2

Anyone got any ideas ? I’m sure my app in not the only one affected by this !

0 Likes