mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Comment to describe message order
This commit is contained in:
@@ -282,6 +282,8 @@ impl Drop for Window {
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe {
|
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);
|
user32::PostMessageW(self.window.0, winapi::WM_CLOSE, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user