fix: Scroll don't get trigged in secondary monitor: no scroll in texbox, trebox, listbox, etc.

This commit is contained in:
qPCR4vir 2015-04-10 10:54:31 +02:00
parent 2f50642114
commit 65c9b35455

View File

@ -1101,7 +1101,7 @@ namespace detail
case WM_MOUSEHWHEEL:
{
//The focus window receives the message in Windows system, it should be redirected to the hovered window
::POINT scr_pos{ int(LOWORD(lParam)), int(HIWORD(lParam)) }; //Screen position
::POINT scr_pos{ pmdec.mouse.x, pmdec.mouse.y}; // int(LOWORD(lParam)), int(HIWORD(lParam)) }; //Screen position
auto pointer_wd = ::WindowFromPoint(scr_pos);
if (pointer_wd == root_window)
{