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

Avoided disabling OSX kiosk mode when focus is lost.

This commit is contained in:
jules 2012-02-29 10:06:13 +00:00
parent e78147dd06
commit a07f07dda3

View file

@ -303,7 +303,7 @@ public:
//==============================================================================
NSWindow* window;
JuceNSView* view;
bool isSharedWindow, fullScreen, insideDrawRect, usingCoreGraphics, usingOpenGL, recursiveToFrontCall;
bool isSharedWindow, fullScreen, insideDrawRect, usingCoreGraphics, recursiveToFrontCall;
static ModifierKeys currentModifiers;
static ComponentPeer* currentlyFocusedPeer;
@ -319,15 +319,11 @@ private:
if (Process::isForegroundProcess())
{
currentlyFocusedPeer->handleFocusGain();
ModalComponentManager::getInstance()->bringModalComponentsToFront();
}
else
{
currentlyFocusedPeer->handleFocusLoss();
// turn kiosk mode off if we lose focus..
Desktop::getInstance().setKioskModeComponent (nullptr);
}
}
}
@ -935,7 +931,6 @@ NSViewComponentPeer::NSViewComponentPeer (Component* const component_,
#else
usingCoreGraphics (false),
#endif
usingOpenGL (false),
recursiveToFrontCall (false)
{
appFocusChangeCallback = appFocusChanged;