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

Don't dim sessions that are receving keyboard input

parent 8f349848
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5065,21 +5065,8 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
[thePath lineToPoint:NSMakePoint(x + kStripeWidth, rect.origin.y + rect.size.height)];
[thePath closePath];
 
[[[NSColor redColor] colorWithAlphaComponent:0.25] set];
[[[NSColor redColor] colorWithAlphaComponent:0.15] set];
[thePath fill];
x += kStripeWidth;
thePath = [NSBezierPath bezierPath];
[thePath moveToPoint:NSMakePoint(x, rect.origin.y + rect.size.height)];
[thePath lineToPoint:NSMakePoint(x + kSlope * rect.size.height, rect.origin.y)];
[thePath lineToPoint:NSMakePoint(x + kSlope * rect.size.height + kStripeWidth, rect.origin.y)];
[thePath lineToPoint:NSMakePoint(x + kStripeWidth, rect.origin.y + rect.size.height)];
[thePath closePath];
[[[NSColor whiteColor] colorWithAlphaComponent:0.25] set];
// [thePath fill];
x -= kStripeWidth;
}
[NSGraphicsContext restoreGraphicsState];
}
Loading
Loading
Loading
Loading
@@ -3975,6 +3975,12 @@ NSString *sessionsKey = @"sessions";
[[self window] setBackgroundColor:nil];
[background_ setColor:normalBackgroundColor];
}
PTYSession *activeSession = [[self currentTab] activeSession];
for (PTYSession *aSession in [[self currentTab] sessions]) {
if (aSession != activeSession) {
[[aSession view] setDimmed:!flag];
}
}
}
 
- (IBAction)toggleInputToAllSessions:(id)sender
Loading
Loading
Loading
Loading
@@ -182,7 +182,11 @@ static NSDate* lastResizeDate_;
if (isDimmed == dim_) {
return;
}
dim_ = isDimmed;
if ([[[session_ tab] realParentWindow] sendInputToAllSessions]) {
dim_ = NO;
} else {
dim_ = isDimmed;
}
[self updateDim];
}
 
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