Skip to content
Snippets Groups Projects
Commit 6d8f6f74 authored by George Nachman's avatar George Nachman
Browse files

Disregard 'zoom button maximizes vertically only' button.

parent 8053a60b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1555,7 +1555,20 @@ NSString *sessionsKey = @"sessions";
proposedFrame.origin.y = defaultFrame.origin.y;
BOOL verticalOnly = NO;
 
if ([[PreferencePanel sharedInstance] maxVertically] ^
BOOL maxVerticallyPref;
if ([self lionFullScreen] ||
(windowType_ != WINDOW_TYPE_FULL_SCREEN &&
IsLionOrLater() &&
[[PreferencePanel sharedInstance] lionStyleFullscreen])) {
// Going into lion fullscreen mode. Disregard the "maximize vertically"
// preference (though it can still be overridden with the shift key,
// below.
maxVerticallyPref = NO;
} else {
maxVerticallyPref = [[PreferencePanel sharedInstance] maxVertically];
}
if (maxVerticallyPref ^
(([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask) != 0)) {
verticalOnly = YES;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment