Win32: If we receive a WM_NCMOUSEMOVE message, we can generate a Event::MouseLeave if needed

This commit is contained in:
David Capello 2014-08-10 00:48:18 -03:00
parent 8cf25c49a7
commit 58a515c3ae

View File

@ -187,14 +187,16 @@ static LRESULT CALLBACK wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
break;
}
case WM_MOUSELEAVE: {
case WM_NCMOUSEMOVE:
case WM_MOUSELEAVE:
if (display_has_mouse) {
display_has_mouse = false;
Event ev;
ev.setType(Event::MouseLeave);
queue_event(ev);
break;
}
break;
case WM_LBUTTONDOWN:
case WM_RBUTTONDOWN: