Browse Source

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.
v7.0.9
attila 3 years ago
parent
commit
29447dd7f3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_gui_basics/windows/juce_DialogWindow.cpp

+ 3
- 3
modules/juce_gui_basics/windows/juce_DialogWindow.cpp 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


Loading…
Cancel
Save