From 60cbb939ab41c17f71b5c3b8f5887df874087d37 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 11 Sep 2023 18:44:06 +0300 Subject: [PATCH] Fix crash on window resize --- client/eventsSDL/InputHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/eventsSDL/InputHandler.cpp b/client/eventsSDL/InputHandler.cpp index c65fefef0..698616d7b 100644 --- a/client/eventsSDL/InputHandler.cpp +++ b/client/eventsSDL/InputHandler.cpp @@ -128,6 +128,7 @@ void InputHandler::preprocessEvent(const SDL_Event & ev) #endif else if(ev.type == SDL_KEYDOWN && ev.key.keysym.sym==SDLK_F4) { + boost::unique_lock lock(*CPlayerInterface::pim); Settings full = settings.write["video"]["fullscreen"]; full->Bool() = !full->Bool();