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

WineHQ Bugzilla wine-bugs at winehq.org
Tue Sep 15 13:08:52 CDT 2020


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

impurered58 at riseup.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |impurered58 at riseup.net

--- Comment #7 from impurered58 at riseup.net ---
This is caused caused by this code:
https://github.com/wine-mirror/wine/blob/master/dlls/winex11.drv/event.c#L705-L709
recently changed - but not fixed - in this commit:
https://github.com/wine-mirror/wine/commit/cfcc280905b7804efde8f42bcd6bddbe5ebd8cad

Unity only decides to activate for WM_ACTIVATE if the last WM_MOUSEACTIVATE has
hit HTCLIENT.

On Windows, this serves so that the window isn't active while dragging the
window using caption, and only activates on release, which is why the PoC patch
works.

I'd recommend rolling back the mentioned commit, and simulating a click and a
release on the caption. This would both replace the fix of the commit, and fix
this issue.

-- 
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