OpenMSX Losing Focus

mccorkled

Member
RL Member
When I save or load a state in OpenMSX the window gets minimized and doesn't regain focus. Any ideas what would cause this? I added the following to the module and that seemed to fix the issue, but it doesn't pause the emulator and you're at risk of losing a life when saving a game.

Code:
HaltEmu:
disableSuspendEmu := "true"
TimerUtils.Sleep(500)
KeyUtils.Send("{Alt down}{Enter down}")
TimerUtils.Sleep(1000)
KeyUtils.Send("{Alt up}{Enter up}")
Return
RestoreEmu:
disableSuspendEmu := "true"
emuPrimaryWindow.Activate()
TimerUtils.Sleep(500)
KeyUtils.Send("{Alt down}{Enter down}")
TimerUtils.Sleep(1000)
KeyUtils.Send("{Alt up}{Enter up}")
Return
 
Last edited:
Top