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:
parent
b4144aa78c
commit
65e48c7232
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue