From: Rémi Bernon <rbernon(a)codeweavers.com> It confuses Unity and breaks input after alt-tab. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48121 --- dlls/winemac.drv/window.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index ca3b0a24050..ca82c920cdf 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -1895,17 +1895,9 @@ void macdrv_window_got_focus(HWND hwnd, const macdrv_event *event) if (can_window_become_foreground(hwnd) && !(style & WS_MINIMIZE)) { - /* simulate a mouse click on the menu to find out - * whether the window wants to be activated */ - LRESULT ma = send_message(hwnd, WM_MOUSEACTIVATE, - (WPARAM)NtUserGetAncestor(hwnd, GA_ROOT), - MAKELONG(HTMENU, WM_LBUTTONDOWN)); - if (ma != MA_NOACTIVATEANDEAT && ma != MA_NOACTIVATE) - { - TRACE("setting foreground window to %p\n", hwnd); - NtUserSetForegroundWindow(hwnd); - return; - } + TRACE("setting foreground window to %p\n", hwnd); + NtUserSetForegroundWindow(hwnd); + return; } TRACE("win %p/%p rejecting focus\n", hwnd, event->window); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7763