wesnoth/changelog_entries/moveto_message.md
Steve Cotton da0ee60864 Fix race condition causing moveto messages to immediately close
If a mouse click causes a delay and then a message to appear, for example
when moving a unit triggers an `[event]name=moveto`, then the message
would sometimes flash on screen and then disappear with barely enough time
to see which character's portrait was used, let alone to read it.

Although there's already logic to not be triggered by the same mouseclick that
caused the unit to move, it had a race condition if the MOUSE_UP happened
around the time the the dialog's pre_show() function was running.

(cherry picked from commit 26ead85914c9e7af9e378d583657fef7f68f6821)
2024-04-09 19:29:52 +02:00

162 B

Miscellaneous and Bug Fixes

  • Fix: releasing a mouse button at the same time as a dialog pops up sometimes dismissed the dialog immediately (issue #8644)