On Windows, catch window callback panics and forward them to the calling thread (#703)

* Catch windows callback panics

* Unwind through calling thread

* Add CHANGELOG entry

* Fix 1.24.1 builds

* Reformat CHANGELOG entry

* Make changes from review

* Wrap thread event target in panic catcher, reformat panic resume message

* Fix me being bad at git
This commit is contained in:
Osspial 2018-11-17 14:20:04 -05:00 committed by Francesca Plebani
parent df5d66b5e8
commit 3ba808e3c6
4 changed files with 104 additions and 24 deletions

View file

@ -2,6 +2,7 @@
- On X11, fixed panic caused by dropping the window before running the event loop.
- Introduce `WindowBuilderExt::with_app_id` to allow setting the application ID on Wayland.
- On Windows, catch panics in event loop child thread and forward them to the parent thread. This prevents an invocation of undefined behavior due to unwinding into foreign code.
- On Windows, fix issue where resizing or moving window combined with grabbing the cursor would freeze program.
- On Windows, fix issue where resizing or moving window would eat `Awakened` events.