mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
also call default window handle on wm_close
This commit is contained in:
parent
28cdce99c0
commit
c57ec33c00
|
@ -291,7 +291,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
|
||||||
let mut context_stash = context_stash.borrow_mut();
|
let mut context_stash = context_stash.borrow_mut();
|
||||||
context_stash.as_mut().unwrap().windows.remove(&window);
|
context_stash.as_mut().unwrap().windows.remove(&window);
|
||||||
});
|
});
|
||||||
0
|
user32::DefWindowProcW(window, msg, wparam, lparam)
|
||||||
},
|
},
|
||||||
|
|
||||||
winapi::WM_ERASEBKGND => {
|
winapi::WM_ERASEBKGND => {
|
||||||
|
|
Loading…
Reference in a new issue