diff options
author | Oz Linden <oz@lindenlab.com> | 2013-12-12 15:51:43 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-12-12 15:51:43 -0500 |
commit | dec487cd7f04f00d4aa6428d190ffbf978ea57da (patch) | |
tree | d96cda0e2f03c1cf5b1f7ffcdd564690e0ab2cad /indra/llwindow | |
parent | c9775dde6249582f0e8976be15e72bfebc4ac3fc (diff) | |
parent | 1a9b9f1bd1b5f64b35b9ce6eff458cdb7a79fe6e (diff) |
merge changes for 3.6.12-release
Diffstat (limited to 'indra/llwindow')
-rwxr-xr-x | indra/llwindow/llwindowcallbacks.cpp | 1 | ||||
-rwxr-xr-x | indra/llwindow/llwindowmacosx.cpp | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowcallbacks.cpp b/indra/llwindow/llwindowcallbacks.cpp index 9712ae1d91..eadff8a6b4 100755 --- a/indra/llwindow/llwindowcallbacks.cpp +++ b/indra/llwindow/llwindowcallbacks.cpp @@ -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) diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index d5b62bd3a7..11c0b51086 100755 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -331,7 +331,16 @@ 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() |