Bug: Window size contraints not taken into account in macOS Split View

In the constructor of my main window, which inherits from DocumentWindow, I set some size constraints using the following code:

ComponentBoundsConstrainer* constrainer = getConstrainer();

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.

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

Up :cry:

bump bump bump

bump :wink:

This change ensures that full-screen split apps now respect the minimum width set by the constrainer.