MAINT-9082 crash on HandleFocusLost

meow-7.2.2
andreykproductengine 2018-09-04 20:19:48 +03:00
parent c2f0d67ab2
commit 94eeef729e
1 changed files with 6 additions and 8 deletions

View File

@ -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)
// Make sure cursor is visible and we haven't mangled the clipping state.
showCursor();
setMouseClipping(FALSE);
if (gKeyboard)
{
mCallbacks->handleFocusLost(this);
}
else
{
showCursor();
gKeyboard->resetKeys();
}
// Clean up remaining GL state