summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/fullscreen_window.mm13
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/fullscreen_window.mm b/chrome/browser/cocoa/fullscreen_window.mm
index 28cf175..0f52a3f 100644
--- a/chrome/browser/cocoa/fullscreen_window.mm
+++ b/chrome/browser/cocoa/fullscreen_window.mm
@@ -58,10 +58,21 @@
}
}
+// Similarly, we need this too....
+- (void)performMiniaturize:(id)sender {
+ [self miniaturize:sender];
+}
+
- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
+ SEL action = [item action];
+
// Explicitly enable |-performClose:| (see above); otherwise the fact that
// this window does not have a close button results in it being disabled.
- if ([item action] == @selector(performClose:))
+ if (action == @selector(performClose:))
+ return YES;
+
+ // Similarly for |-performMiniaturize:|.
+ if (action == @selector(performMiniaturize:))
return YES;
return [super validateUserInterfaceItem:item];