Merge pull request #68133 from Sauermann/fix-mouse-dropping

Fix mouseleave event after drag and drop in different windows
This commit is contained in:
Rémi Verschelde 2022-11-03 12:07:52 +01:00
commit a68ea12c5b
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -2449,6 +2449,10 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
window_mouseover_id = INVALID_WINDOW_ID; window_mouseover_id = INVALID_WINDOW_ID;
_send_window_event(windows[window_id], WINDOW_EVENT_MOUSE_EXIT); _send_window_event(windows[window_id], WINDOW_EVENT_MOUSE_EXIT);
} else if (window_mouseover_id != INVALID_WINDOW_ID) {
// This is reached during drag and drop, after dropping in a different window.
// Once-off notification, must call again.
track_mouse_leave_event(windows[window_mouseover_id].hWnd);
} }
} break; } break;