Merge pull request #85484 from Maran23/windows-popup-menu-mouse-fix
Do not consume mouse messages in windows with `no_focus` on Windows OS
This commit is contained in:
commit
7b1a5de284
|
@ -2958,9 +2958,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|||
}
|
||||
} break;
|
||||
case WM_MOUSEACTIVATE: {
|
||||
if (windows[window_id].no_focus) {
|
||||
return MA_NOACTIVATEANDEAT; // Do not activate, and discard mouse messages.
|
||||
} else if (windows[window_id].is_popup) {
|
||||
if (windows[window_id].no_focus || windows[window_id].is_popup) {
|
||||
return MA_NOACTIVATE; // Do not activate, but process mouse messages.
|
||||
}
|
||||
} break;
|
||||
|
|
Loading…
Reference in New Issue