Skip to content
Snippets Groups Projects
Commit bb728cda authored by Aura Linden's avatar Aura Linden
Browse files

Shot in the dark patch for MAINT-3353

parent 26de3291
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,7 @@ void LLWindowCallbacks::handleResize(LLWindow *window, const S32 width, const S3
void LLWindowCallbacks::handleFocus(LLWindow *window)
{
LL_WARNS("COCOA") << "Called handleFocus proto" << LL_ENDL;
}
void LLWindowCallbacks::handleFocusLost(LLWindow *window)
......
......@@ -331,7 +331,14 @@ void callMouseExit()
void callWindowFocus()
{
gWindowImplementation->getCallbacks()->handleFocus(gWindowImplementation);
if ( gWindowImplementation && gWindowImplementation->getCallbacks() )
{
gWindowImplementation->getCallbacks()->handleFocus (gWindowImplementation);
}
else
{
LL_WARNS("COCOA") << "Window Implementation or callbacks not yet initialized." << LL_ENDL;
}
}
void callWindowUnfocus()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment