Skip to content

fix: trigger activate event when app is activated via app switcher - #23775

Merged
zcbenz merged 1 commit into
electron:7-3-xfrom
isnotgood:fix-mac-activation-backport-7-3-x
May 27, 2020
Merged

zcbenz merged 1 commit into
electron:7-3-xfrom
isnotgood:fix-mac-activation-backport-7-3-x

Conversation

@isnotgood

Copy link
Copy Markdown
Contributor

Manual backport of #23727

See that PR for details.

Notes: none

When application is activated thru macOS app switcher (cmd+tab) the
App's activate event is note emitted. The reason is that
`applicationShouldHandleReopen:hasVisibleWindows:` is sent only when app
is activated via Dock. Using `applicationDidBecomeActive:` is handling
all cases properly.
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 26, 2020
@trop trop Bot added 7-3-x backport This is a backport PR labels May 26, 2020
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 26, 2020
@zcbenz
zcbenz merged commit 3a568ab into electron:7-3-x May 27, 2020
@release-clerk

release-clerk Bot commented May 27, 2020

Copy link
Copy Markdown

No Release Notes

zcbenz added a commit that referenced this pull request May 28, 2020
jkleinsc pushed a commit that referenced this pull request May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7-3-x backport This is a backport PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants