Chromium Code Reviews| Index: chrome/browser/cocoa/browser_window_controller.mm |
| =================================================================== |
| --- chrome/browser/cocoa/browser_window_controller.mm (revision 22243) |
| +++ chrome/browser/cocoa/browser_window_controller.mm (working copy) |
| @@ -323,6 +323,13 @@ |
| // Called when we are deactivated (when we lose focus). |
| - (void)windowDidResignKey:(NSNotification*)notification { |
| + // If our app is still active and we're still the key window, ignore this |
| + // message, since it just means that a menu extra (on the "system status bar") |
| + // was activated; we'll get another |-windowDidResignKey| if we ever really |
| + // lose key window status. |
| + if ([NSApp isActive] && ([NSApp keyWindow] == window_)) |
|
pink (ping after 24hrs)
2009/08/12 14:49:16
what does this do in the case of a panel visible,
viettrungluu-gmail
2009/08/12 14:59:21
What do you mean, "panel"? (AFAICT, it works as it
|
| + return; |
| + |
| // We need to deactivate the controls (in the "WebView"). To do this, get the |
| // selected TabContents's RenderWidgetHostView and tell it to deactivate. |
| if (TabContents* contents = browser_->GetSelectedTabContents()) { |