win32: implement wakeup_event_loop

This commit is contained in:
Vladimir Vukicevic 2015-09-22 14:02:36 -04:00
parent 4af72a4109
commit 059821a99c
2 changed files with 17 additions and 3 deletions

View file

@ -281,6 +281,12 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
0
},
x if x == *super::WAKEUP_MSG_ID => {
use events::Event::Awakened;
send_event(window, Awakened);
0
},
_ => {
user32::DefWindowProcW(window, msg, wparam, lparam)
}