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

WineHQ Bugzilla wine-bugs at winehq.org
Mon Sep 28 02:27:18 CDT 2020


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

Rémi Bernon <rbernon at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rbernon at codeweavers.com

--- Comment #10 from Rémi Bernon <rbernon at codeweavers.com> ---
The code in winex11.drv is clearly incorrect w.r.t what Windows does,
especially for focus gained through means other than mouse click (alt-tab or
other), but I believe it's there for a reason. I don't remember exactly the
kind of scenario we need it for, but removing it will break some cases.

FWIW, winex11.drv has a UseTakeFocus configuration option to not use
WM_TAKE_FOCUS message, and that can be used to immediately give focus to
windows, without sending this message (effectively doing what you suggests but
without modifying the code). Proton uses that by default.

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