mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #95972 from Hilderin/fix-mouse-move-over-unfocused-window
Fix mouse move over an unfocused window
This commit is contained in:
commit
ddb2073c5c
@ -4792,9 +4792,12 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
break;
|
||||
}
|
||||
|
||||
DisplayServer::WindowID receiving_window_id = _get_focused_window_or_popup();
|
||||
if (receiving_window_id == INVALID_WINDOW_ID) {
|
||||
receiving_window_id = window_id;
|
||||
DisplayServer::WindowID receiving_window_id = window_id;
|
||||
if (mouse_mode == MOUSE_MODE_CAPTURED || mouse_mode == MOUSE_MODE_CONFINED || mouse_mode == MOUSE_MODE_CONFINED_HIDDEN) {
|
||||
receiving_window_id = _get_focused_window_or_popup();
|
||||
if (receiving_window_id == INVALID_WINDOW_ID) {
|
||||
receiving_window_id = window_id;
|
||||
}
|
||||
}
|
||||
|
||||
const BitField<WinKeyModifierMask> &mods = _get_mods();
|
||||
|
Loading…
Reference in New Issue
Block a user