mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Windows: Changed thread_event_target_callback's WM_DESTROY to WM_NCDESTROY (#1780)
This commit is contained in:
parent
db038d943c
commit
6f70fd90b9
|
@ -1,5 +1,6 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On Windows, fix applications not exiting gracefully due to thread_event_target_callback accessing corrupted memory.
|
||||||
- On Windows, implement `Window::set_ime_position`.
|
- On Windows, implement `Window::set_ime_position`.
|
||||||
- **Breaking:** On Windows, Renamed `WindowBuilderExtWindows`'s `is_dark_mode` to `theme`.
|
- **Breaking:** On Windows, Renamed `WindowBuilderExtWindows`'s `is_dark_mode` to `theme`.
|
||||||
- On Windows, add `WindowBuilderExtWindows::with_theme` to set a preferred theme.
|
- On Windows, add `WindowBuilderExtWindows::with_theme` to set a preferred theme.
|
||||||
|
|
|
@ -1939,7 +1939,7 @@ unsafe extern "system" fn thread_event_target_callback<T: 'static>(
|
||||||
// the closure to catch_unwind directly so that the match body indendation wouldn't change and
|
// the closure to catch_unwind directly so that the match body indendation wouldn't change and
|
||||||
// the git blame and history would be preserved.
|
// the git blame and history would be preserved.
|
||||||
let callback = || match msg {
|
let callback = || match msg {
|
||||||
winuser::WM_DESTROY => {
|
winuser::WM_NCDESTROY => {
|
||||||
Box::from_raw(subclass_input);
|
Box::from_raw(subclass_input);
|
||||||
drop(subclass_input);
|
drop(subclass_input);
|
||||||
0
|
0
|
||||||
|
|
Loading…
Reference in a new issue