1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

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

This commit is contained in:
jules 2012-12-23 13:04:54 +00:00
parent 35991fb01c
commit e83e076f7d
5 changed files with 4 additions and 9 deletions

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,

View file

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

View file

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

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);

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);