https://bugs.winehq.org/show_bug.cgi?id=55336
--- Comment #9 from YuriK7 riyu12383@gmail.com --- Created attachment 76865 --> https://bugs.winehq.org/attachment.cgi?id=76865 Fixes the issue on winex11
As for the initial alt tabbing issue, somehow removing that hook call in win32u as in the attached patch fixes the issue. I'm not sure why winewayaland isn't affected, maybe it's because it doesn't need to call NtUserSetForegroundWindow( NtUserGetDesktopWindow() ) in some weird x11 cases when focusing out.