https://bugs.winehq.org/show_bug.cgi?id=55336
--- Comment #8 from YuriK7 riyu12383@gmail.com --- Actually, the wayland behavior is a different issue.
The winewayland driver is not directly concerned by the alt tab issue, but it's "alt" contextual menu has some issue.
On Windows, the "alt" contextual menu appears after pressing alt and then enter or up/down arrow button. However pressing alt and then any other button than enter/up/down/left/right button, reactivate the main window.
First issue is that alt tabbing on windows never bring the "alt" contextual menu waiting state, so it seems there's an issue with the handling of the alt button.
Secondly, when the "alt" menu waiting state is reached after pressing alt, pressing w/x keys doesn't reactivate/refocus the main window, while escape and alt does.
So the winex11 driver has an issue with alt-tabbing and the winewayland driver has a slightly buggy "alt" contextual menu.