1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

Linux: Fix ComponentBoundsCosntrainer not having an effect

This commit is contained in:
reuk 2026-01-16 19:41:24 +00:00 committed by Attila Szarvas
parent b4144aa78c
commit 65e48c7232

View file

@ -77,10 +77,13 @@ void ResizableWindow::initialise (const bool shouldAddToDesktop)
int ResizableWindow::getDesktopWindowStyleFlags() const
{
int styleFlags = TopLevelWindow::getDesktopWindowStyleFlags();
const auto styleFlags = TopLevelWindow::getDesktopWindowStyleFlags();
if (isResizable() && Desktop::getInstance().supportsBorderlessNonClientResize())
styleFlags |= ComponentPeer::windowIsResizable;
if (isResizable()
&& (isUsingNativeTitleBar() || Desktop::getInstance().supportsBorderlessNonClientResize()))
{
return styleFlags | ComponentPeer::windowIsResizable;
}
return styleFlags;
}