Browse Source

Better always-on-top detection in a few component types.

tags/2021-05-28
jules 13 years ago
parent
commit
e83e076f7d
5 changed files with 4 additions and 9 deletions
  1. +2
    -0
      modules/juce_gui_basics/juce_gui_basics.cpp
  2. +0
    -2
      modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  3. +0
    -2
      modules/juce_gui_basics/windows/juce_AlertWindow.cpp
  4. +1
    -2
      modules/juce_gui_basics/windows/juce_CallOutBox.cpp
  5. +1
    -3
      modules/juce_gui_basics/windows/juce_DialogWindow.cpp

+ 2
- 0
modules/juce_gui_basics/juce_gui_basics.cpp View File

@@ -129,6 +129,8 @@
//==============================================================================
namespace juce
{
extern bool juce_areThereAnyAlwaysOnTopWindows();
// START_AUTOINCLUDE components/*.cpp, mouse/*.cpp, keyboard/*.cpp, buttons/*.cpp,
// drawables/*.cpp, filebrowser/*.cpp, layout/*.cpp, lookandfeel/*.cpp,


+ 0
- 2
modules/juce_gui_basics/native/juce_win32_FileChooser.cpp View File

@@ -23,8 +23,6 @@
==============================================================================
*/
extern bool juce_areThereAnyAlwaysOnTopWindows();
namespace FileChooserHelpers
{
struct FileChooserCallbackInfo


+ 0
- 2
modules/juce_gui_basics/windows/juce_AlertWindow.cpp View File

@@ -32,8 +32,6 @@ static juce_wchar getDefaultPasswordChar() noexcept
#endif
}
extern bool juce_areThereAnyAlwaysOnTopWindows();
//==============================================================================
AlertWindow::AlertWindow (const String& title,
const String& message,


+ 1
- 2
modules/juce_gui_basics/windows/juce_CallOutBox.cpp View File

@@ -36,8 +36,7 @@ CallOutBox::CallOutBox (Component& c, const Rectangle<int>& area, Component* con
}
else
{
if (! JUCEApplication::isStandaloneApp())
setAlwaysOnTop (true); // for a plugin, make it always-on-top because the host windows are often top-level
setAlwaysOnTop (juce_areThereAnyAlwaysOnTopWindows());
updatePosition (area, Desktop::getInstance().getDisplays()
.getDisplayContaining (area.getCentre()).userArea);


+ 1
- 3
modules/juce_gui_basics/windows/juce_DialogWindow.cpp View File

@@ -70,9 +70,7 @@ public:
options.escapeKeyTriggersCloseButton, true)
{
setUsingNativeTitleBar (options.useNativeTitleBar);
if (! JUCEApplication::isStandaloneApp())
setAlwaysOnTop (true); // for a plugin, make it always-on-top because the host windows are often top-level
setAlwaysOnTop (juce_areThereAnyAlwaysOnTopWindows());
if (options.content.willDeleteObject())
setContentOwned (options.content.release(), true);


Loading…
Cancel
Save