https://bugs.winehq.org/show_bug.cgi?id=48121
--- Comment #17 from David Torok dt@zeroitlab.com --- Created attachment 68330 --> https://bugs.winehq.org/attachment.cgi?id=68330 yet another WIP patch
Based on the first round of feedback, I made another patch.
This removes the HTMENU click test, which as far as I understand should be in line with windows behavior when the window re-actives using Alt + Tab. (This solves the original issue)
However, as mentioned, another issue (which probably should be tracked separately) is that on re-activation the window snaps back to the center from it's current position in the case of Unity. To resolve that, we started comparing the WM sequences and noticed windows also sends WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED on reactivation. To follow the proper behavior more closely, I also added that to the patch. (Can't hurt?)
That did not resolve the snapping back to center issue, so more root cause analysis is to be done.