From ac515a9ab12e1295e4836740f30344fb623e3b08 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Mon, 10 Aug 2015 21:54:30 -0500 Subject: [PATCH] release the mouse from window constraints when poping up a window prompt like, say, assertfatal, to allow clicking in the popup. --- Engine/source/platformSDL/sdlMsgBox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/source/platformSDL/sdlMsgBox.cpp b/Engine/source/platformSDL/sdlMsgBox.cpp index 6bb5b0bda..b9466f768 100644 --- a/Engine/source/platformSDL/sdlMsgBox.cpp +++ b/Engine/source/platformSDL/sdlMsgBox.cpp @@ -76,6 +76,10 @@ S32 Platform::messageBox(const UTF8 *title, const UTF8 *message, MBButtons butto initMsgBox_ButtonData(); SDL_Window *window = WindowManager->getFirstWindow() ? SDL_GetWindowFromID( WindowManager->getFirstWindow()->getWindowId() ) : NULL; + + if (window) //release the mouse from the window constaints + SDL_SetWindowGrab(window, SDL_FALSE); + if(buttons == MBOk) return SDL_ShowSimpleMessageBox(0, title, message, window );