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();