diff --git a/src/platform/windows/window.rs b/src/platform/windows/window.rs index 16ac42c1..d737a36b 100644 --- a/src/platform/windows/window.rs +++ b/src/platform/windows/window.rs @@ -282,6 +282,8 @@ impl Drop for Window { #[inline] fn drop(&mut self) { unsafe { + // We are sending WM_CLOSE, and our callback will process this by calling DefWindowProcW, + // which in turn will send a WM_DESTROY. user32::PostMessageW(self.window.0, winapi::WM_CLOSE, 0, 0); } }