Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Focus chrome window when launching Live Development #404

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 20, 2013
  1. @fungl164
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 appshell/appshell_extensions_mac.mm
View
4 appshell/appshell_extensions_mac.mm
@@ -263,7 +263,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
nil];
NSDictionary* appConfig = [NSDictionary dictionaryWithObject:parameters forKey:NSWorkspaceLaunchConfigurationArguments];
- NSUInteger launchOptions = NSWorkspaceLaunchDefault | NSWorkspaceLaunchWithoutActivation | NSWorkspaceLaunchNewInstance;
+ NSUInteger launchOptions = NSWorkspaceLaunchDefault | NSWorkspaceLaunchNewInstance;
liveBrowser = [[NSWorkspace sharedWorkspace] launchApplicationAtURL:appURL options:launchOptions configuration:appConfig error:nil];
if (!liveBrowser) {
@@ -276,6 +276,8 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
return NO_ERROR;
}
+ [liveBrowser activateWithOptions:NSApplicationActivateIgnoringOtherApps];
+
// Check for existing tab with url already loaded
for (GoogleChromeWindow* chromeWindow in [chromeApp windows]) {
for (GoogleChromeTab* tab in [chromeWindow tabs]) {
Something went wrong with that request. Please try again.