[Bug 48121] Unity games do not fire OnApplicationFocus/OnApplicationPause events on focus regain

WineHQ Bugzilla wine-bugs at winehq.org
Mon Oct 5 06:00:03 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=48121

--- Comment #17 from David Torok <dt at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list