replace wm_destroy by wm_close

This commit is contained in:
gzp 2017-07-28 13:09:50 +02:00
parent 45c5568c89
commit 28cdce99c0
2 changed files with 2 additions and 2 deletions

View file

@ -281,7 +281,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
-> winapi::LRESULT
{
match msg {
winapi::WM_DESTROY => {
winapi::WM_CLOSE => {
use events::WindowEvent::Closed;
send_event(Event::WindowEvent {
window_id: SuperWindowId(WindowId(window)),