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

DefaultDialogWindow: Avoid bad positioning on Linux

This change avoids a situation where a standalone plugin's Audio/Midi
settings window could appear in a wrong position.
This commit is contained in:
attila 2022-07-16 19:38:53 +02:00
parent 07b96bc86d
commit 29447dd7f3

View file

@ -83,9 +83,6 @@ public:
? Component::getApproximateScaleFactorForComponent (options.componentToCentreAround)
: 1.0f)
{
setUsingNativeTitleBar (options.useNativeTitleBar);
setAlwaysOnTop (juce_areThereAnyAlwaysOnTopWindows());
if (options.content.willDeleteObject())
setContentOwned (options.content.release(), true);
else
@ -93,6 +90,9 @@ public:
centreAroundComponent (options.componentToCentreAround, getWidth(), getHeight());
setResizable (options.resizable, options.useBottomRightCornerResizer);
setUsingNativeTitleBar (options.useNativeTitleBar);
setAlwaysOnTop (juce_areThereAnyAlwaysOnTopWindows());
}
void closeButtonPressed() override