mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Win32: If we receive a WM_NCMOUSEMOVE message, we can generate a Event::MouseLeave if needed
This commit is contained in:
parent
8cf25c49a7
commit
58a515c3ae
@ -187,14 +187,16 @@ static LRESULT CALLBACK wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_MOUSELEAVE: {
|
||||
display_has_mouse = false;
|
||||
case WM_NCMOUSEMOVE:
|
||||
case WM_MOUSELEAVE:
|
||||
if (display_has_mouse) {
|
||||
display_has_mouse = false;
|
||||
|
||||
Event ev;
|
||||
ev.setType(Event::MouseLeave);
|
||||
queue_event(ev);
|
||||
Event ev;
|
||||
ev.setType(Event::MouseLeave);
|
||||
queue_event(ev);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_LBUTTONDOWN:
|
||||
case WM_RBUTTONDOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user