[Bug 51194] Unity games on Mac are not correctly foregrounded on launch

WineHQ Bugzilla wine-bugs at winehq.org
Fri May 28 12:46:43 CDT 2021


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

--- Comment #1 from Brendan Shanks <bshanks at codeweavers.com> ---
Additionally, the window does get correctly foregrounded without a Sleep() or
additional SetWindowPos() call.

This appears to be luck: without any extra time after the SetWindowPos() call,
the window has not had any time to be shown (and the
applicationWill/DidBecomeActive / APP_ACTIVATED events sent). When SetFocus()
is called, the app isn't active, so makeKeyWindow: doesn't take effect
immediately.
windowDidBecomeKey: is called later, not under the call stack of makeFocused: /
makeKeyWindow:, so the logic in those commits doesn't apply.

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