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:
parent
35991fb01c
commit
e83e076f7d
5 changed files with 4 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
extern bool juce_areThereAnyAlwaysOnTopWindows();
|
||||
|
||||
namespace FileChooserHelpers
|
||||
{
|
||||
struct FileChooserCallbackInfo
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@ static juce_wchar getDefaultPasswordChar() noexcept
|
|||
#endif
|
||||
}
|
||||
|
||||
extern bool juce_areThereAnyAlwaysOnTopWindows();
|
||||
|
||||
//==============================================================================
|
||||
AlertWindow::AlertWindow (const String& title,
|
||||
const String& message,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue