exPatchWindowBorderEvent

Description

When the player clicks on the window border (Non-client area) of the game window, because he wants to move/resize the game window, that might disrupt the game flow on Windows and de-sync certain elements of the game, like cutscenes or rhythm games, as the game window does not fire the focus lost event in those cases.

This small Windows extension provides a way to detect that, however it will send the event after the action is complete due to GMS' thread pausing, but you can re-sync your game's elements using delta_time and e.g. show a Pause Screen