summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-03 12:07:52 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-03 12:07:52 +0100
commita68ea12c5b7bdceaad889142fe8852ce65b025af (patch)
tree02a1fa708e10474ffa99f06c30cd8da4000efffd /platform
parent3eaf49765bd807130cc5c78d30bb7f49603aab1b (diff)
parent9cea6534573dacb1aa3bb5944d7c0ddac5c48f80 (diff)
Merge pull request #68133 from Sauermann/fix-mouse-dropping
Fix mouseleave event after drag and drop in different windows
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/display_server_windows.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index 9d0a2578fb..d6ee712a31 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -2449,6 +2449,10 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
window_mouseover_id = INVALID_WINDOW_ID;
_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;