From 29447dd7f3c3b6bc18b33734d30afa297f99fddc Mon Sep 17 00:00:00 2001 From: attila Date: Sat, 16 Jul 2022 19:38:53 +0200 Subject: [PATCH] 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. --- modules/juce_gui_basics/windows/juce_DialogWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_gui_basics/windows/juce_DialogWindow.cpp b/modules/juce_gui_basics/windows/juce_DialogWindow.cpp index b024f9ddeb..c2da248cf6 100644 --- a/modules/juce_gui_basics/windows/juce_DialogWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_DialogWindow.cpp @@ -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