diff options
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r-- | src/win32/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs index 720010c..8be3fdb 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -235,11 +235,11 @@ impl Window { } } -#[cfg(feature = "window")] #[unsafe_destructor] impl Drop for Window { fn drop(&mut self) { use std::ptr; + unsafe { ffi::PostMessageW(self.window, ffi::WM_DESTROY, 0, 0); } unsafe { ffi::wgl::MakeCurrent(ptr::null(), ptr::null()); } unsafe { ffi::wgl::DeleteContext(self.context); } unsafe { ffi::DestroyWindow(self.window); } |