From c57ec33c009660826a11a8e0fce19505b7931e0d Mon Sep 17 00:00:00 2001 From: gzp Date: Fri, 28 Jul 2017 13:12:16 +0200 Subject: [PATCH] also call default window handle on wm_close --- src/platform/windows/events_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/windows/events_loop.rs b/src/platform/windows/events_loop.rs index e9374fa4..11716bac 100644 --- a/src/platform/windows/events_loop.rs +++ b/src/platform/windows/events_loop.rs @@ -291,7 +291,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, let mut context_stash = context_stash.borrow_mut(); context_stash.as_mut().unwrap().windows.remove(&window); }); - 0 + user32::DefWindowProcW(window, msg, wparam, lparam) }, winapi::WM_ERASEBKGND => {