feat: Add did-become-active event on mac (#23872)

Co-authored-by: Lukas Weber <luweber@microsoft.com>
This commit is contained in:
Lukas Weber 2020-06-16 19:03:41 +02:00 committed by GitHub
parent f9fe8a67b9
commit cf284991d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 0 deletions

View file

@ -89,6 +89,10 @@ static base::mac::ScopedObjCClassSwizzler* g_swizzle_imk_input_session;
#endif
}
- (void)applicationDidBecomeActive:(NSNotification*)notification {
electron::Browser::Get()->DidBecomeActive();
}
- (NSMenu*)applicationDockMenu:(NSApplication*)sender {
if (menu_controller_)
return [menu_controller_ menu];