From f6a77dc53345d42cb8c2761f2be0a15c80c4f423 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Fri, 26 Jun 2020 00:32:24 +0200 Subject: [PATCH] Make sure the mouse is not grabbed before executing something on Host --- src/uaelib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uaelib.cpp b/src/uaelib.cpp index 05bdb492..99c864f7 100644 --- a/src/uaelib.cpp +++ b/src/uaelib.cpp @@ -14,6 +14,8 @@ #include #include + +#include "amiberry_gfx.h" #include "options.h" #include "uae.h" #include "memory.h" @@ -356,6 +358,8 @@ static uae_u32 emulib_ExecuteOnHost(TrapContext* ctx, uaecptr name) if (trap_get_string(ctx, real_name, name, sizeof real_name) >= sizeof real_name) return 0; /* ENAMETOOLONG */ + SDL_ShowCursor(SDL_ENABLE); + SDL_SetRelativeMouseMode(SDL_FALSE); system(real_name); return 1; }