Make sure the mouse is not grabbed before executing something on Host
This commit is contained in:
parent
fb0bfdb78c
commit
f6a77dc533
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,8 @@
|
|||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue