Commit 94eeef72 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-9082 crash on HandleFocusLost

parent c2f0d67a
......@@ -752,8 +752,6 @@ void LLWindowWin32::close()
mDragDrop->reset();
// Make sure cursor is visible and we haven't mangled the clipping state.
setMouseClipping(FALSE);
// Go back to screen mode written in the registry.
if (mFullscreen)
......@@ -763,13 +761,13 @@ void LLWindowWin32::close()
// Don't process events in our mainWindowProc any longer.
SetWindowLongPtr(mWindowHandle, GWLP_USERDATA, NULL);
if (mCallbacks)
{
mCallbacks->handleFocusLost(this);
}
else
// Make sure cursor is visible and we haven't mangled the clipping state.
showCursor();
setMouseClipping(FALSE);
if (gKeyboard)
{
showCursor();
gKeyboard->resetKeys();
}
// Clean up remaining GL state
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment