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