On Windows, improve handling of window destruction (#1798)

This commit is contained in:
Markus Røyset 2020-12-20 12:54:42 +01:00 committed by GitHub
parent 932cbe40bf
commit c05952b813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 76 additions and 9 deletions

View file

@ -114,6 +114,8 @@ impl Window {
window_state: win.window_state.clone(),
event_loop_runner: event_loop.runner_shared.clone(),
file_drop_handler,
subclass_removed: Cell::new(false),
recurse_depth: Cell::new(0),
};
event_loop::subclass_window(win.window.0, subclass_input);