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

Add debugging

parent 01faec18
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -140,6 +140,12 @@ static CGSSetWindowBackgroundBlurRadiusFunction* GetCGSSetWindowBackgroundBlurRa
#endif
}
 
- (void)setFrame:(NSRect)frameRect display:(BOOL)flag
{
NSLog(@"Set frame %@", [NSThread callStackSymbols]);
[super setFrame:frameRect display:flag];
}
- (void)disableBlur
{
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
Loading
Loading
Loading
Loading
@@ -1543,7 +1543,7 @@ NSString *sessionsKey = @"sessions";
 
- (void)screenParametersDidChange
{
PtyLog(@"Screen parameters changed.");
NSLog(@"Screen parameters changed for term with frame %@.", [NSValue valueWithRect:[[self window] frame]]);
NSScreen* screen = [[self window] deepestScreen];
if (!screen) {
NSDictionary* aDict = [[self currentSession] addressBookEntry];
Loading
Loading
@@ -1558,6 +1558,7 @@ NSString *sessionsKey = @"sessions";
if ([screens count] < screenNumber) {
screenNumber = 0;
}
NSLog(@"Using screen %d", screenNumber);
screen = [[NSScreen screens] objectAtIndex:screenNumber];
}
NSRect frame = [[self window] frame];
Loading
Loading
@@ -1578,6 +1579,7 @@ NSString *sessionsKey = @"sessions";
}
 
if (frame.size.width > 0) {
NSLog(@"Set frame of top window to %@", [NSValue valueWithRect:frame]);
[[self window] setFrame:frame display:YES];
}
break;
Loading
Loading
@@ -1594,6 +1596,7 @@ NSString *sessionsKey = @"sessions";
}
 
if (frame.size.width > 0) {
NSLog(@"Set frame of bottom window to %@", [NSValue valueWithRect:frame]);
[[self window] setFrame:frame display:YES];
}
break;
Loading
Loading
@@ -1601,12 +1604,14 @@ NSString *sessionsKey = @"sessions";
case WINDOW_TYPE_LION_FULL_SCREEN:
case WINDOW_TYPE_FULL_SCREEN:
if ([screen frame].size.width > 0) {
NSLog(@"Set frame of lion fullscreen or fullscreen window to %@", [NSValue valueWithRect:frame]);
[[self window] setFrame:[screen frame] display:YES];
}
break;
 
case WINDOW_TYPE_NORMAL:
// fall through, the os takes care of this fine.
NSLog(@"Not setting frame of normal window");
default:
break;
}
Loading
Loading
@@ -3380,6 +3385,8 @@ NSString *sessionsKey = @"sessions";
 
- (BOOL)fitWindowToTabSize:(NSSize)tabSize
{
NSLog(@"fitWindowToTabSize:%@", [NSValue valueWithSize:tabSize]);
if ([self anyFullScreen]) {
[self fitTabsToWindow];
return NO;
Loading
Loading
Loading
Loading
@@ -460,6 +460,7 @@ static BOOL hasBecomeActive = NO;
 
- (void)applicationDidChangeScreenParameters:(NSNotification *)aNotification
{
NSLog(@"Screen parameters did change");
// Make sure that all top-of-screen windows are the proper width.
for (PseudoTerminal* term in [self terminals]) {
[term screenParametersDidChange];
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