mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
First "on_event" firing after mouse button is released may cause a sequence of blocking actions. If there's any control checks during them, the global "wasbutdown" variable will be tested again, potentially leading to a recursive "mouse up" event, except it's not run immediately, but scheduled until after the first one has completed running. For this reason "wasbutdown" must be reset BEFORE firing any events. This was broken a VERY long time ago, it seems, probably by commit 2f54a16 From upstream ff1baccbffd8ee79fe3a5aff547e2ac7b8d8aaf5 (branch 3.6.1)