From 9912151a890846a7a2356f2d4b9fab3a28c9b701 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 14 Feb 2020 21:52:10 +0000 Subject: [PATCH] Add patch 285 from MHM to fix bug 367, mimics the normal event.gain code Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4326 --- src/gui/sdlmain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index b2551fdc..15f2f8cf 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -2073,6 +2073,8 @@ void GFX_Events() { if (ev.active.gain) { paused = false; GFX_SetTitle(-1,-1,false); + SetPriority(sdl.priority.focus); + CPU_Disable_SkipAutoAdjust(); } /* Now poke a "release ALT" command into the keyboard buffer