Quote from: TheExDeusTo make os_is_paused() work like GM it will have to be a lot less pretty (we need additional variable to check if window was in focus last frame).
You're assuming that the 1 step is guaranteed.
At any rate I have fixed it and tested it for Win32 to have the expected behavior and committed, the following works fine. I still need to test and make sure Studio does actually behave this way, and if so then it can be merged. However, I don't agree at all with the way they handled this, honestly it was so stupid, they should have just made FocusGain and FocusLost events.
if (os_is_paused()) {
show_message_async("OS Paused");
}This was the commit amended that fixed the issue.
https://github.com/RobertBColton/enigma-dev/commit/28b0f89bba5f1c38daf3944781cfe495d92af51fI also had to apply the following fix to that.
https://github.com/RobertBColton/enigma-dev/commit/a6706ff2d12141c561d4d2d172826955e224cbc7Edit: I have tested Studio, and the current version appears to behave exactly the same, so the pull request is good to merge. However I have noticed a new inconsistency in the asynchronous dialog functions.