1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ResizableWindow: Set resizable flag only when desktop does not support native nonclient resize

This commit is contained in:
reuk 2024-07-30 16:14:01 +01:00
parent 0ffe5948a5
commit 3da5a3c9bd
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -79,7 +79,7 @@ int ResizableWindow::getDesktopWindowStyleFlags() const
{
int styleFlags = TopLevelWindow::getDesktopWindowStyleFlags();
if (isResizable())
if (isResizable() && Desktop::getInstance().supportsBorderlessNonClientResize())
styleFlags |= ComponentPeer::windowIsResizable;
return styleFlags;