mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_MOUSELEAVE: {
|
case WM_NCMOUSEMOVE:
|
||||||
display_has_mouse = false;
|
case WM_MOUSELEAVE:
|
||||||
|
if (display_has_mouse) {
|
||||||
|
display_has_mouse = false;
|
||||||
|
|
||||||
Event ev;
|
Event ev;
|
||||||
ev.setType(Event::MouseLeave);
|
ev.setType(Event::MouseLeave);
|
||||||
queue_event(ev);
|
queue_event(ev);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONDOWN:
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
|
Loading…
Reference in New Issue
Block a user