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

Preserve collection behavior of fullscreen windows.

parent e0cdab1d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1316,6 +1316,10 @@ NSString *sessionsKey = @"sessions";
PtyLog(@"toggleFullScreenMode - set new frame to old frame: %fx%f", oldFrame_.size.width, oldFrame_.size.height);
[[newTerminal window] setFrame:oldFrame_ display:YES];
}
// Ensure that fullscreen windows (often hotkey windows) don't lose their collection behavior.
[[newTerminal window] setCollectionBehavior:[[self window] collectionBehavior]];
newTerminal->useTransparency_ = useTransparency_;
[newTerminal setIsHotKeyWindow:isHotKeyWindow_];
 
Loading
Loading
@@ -4116,7 +4120,7 @@ NSString *sessionsKey = @"sessions";
if ([self numberOfTabs] == 1 &&
[addressbookEntry objectForKey:KEY_SPACE] &&
[[addressbookEntry objectForKey:KEY_SPACE] intValue] == -1) {
[[self window] setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
[[self window] setCollectionBehavior:[[self window] collectionBehavior] | NSWindowCollectionBehaviorCanJoinAllSpaces];
}
 
[aSession release];
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