mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
This commit is contained in:
parent
bf8b7ec965
commit
245e2116c3
1 changed files with 2 additions and 1 deletions
|
|
@ -39,6 +39,7 @@ BEGIN_JUCE_NAMESPACE
|
|||
#include "../gui/components/windows/juce_ResizableWindow.h"
|
||||
#include "../gui/components/juce_Desktop.h"
|
||||
#include "../events/juce_MessageManager.h"
|
||||
#include "../../juce_core/threads/juce_Process.h"
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -273,7 +274,7 @@ ApplicationCommandTarget* ApplicationCommandManager::findDefaultComponentTarget(
|
|||
}
|
||||
}
|
||||
|
||||
if (c == 0)
|
||||
if (c == 0 && Process::isForegroundProcess())
|
||||
{
|
||||
// getting a bit desperate now - try all desktop comps..
|
||||
for (int i = Desktop::getInstance().getNumComponents(); --i >= 0;)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue