From: <de...@us...> - 2009-09-18 03:22:22
|
Revision: 1807 http://iterm.svn.sourceforge.net/iterm/?rev=1807&view=rev Author: delx Date: 2009-09-18 03:22:14 +0000 (Fri, 18 Sep 2009) Log Message: ----------- Fix graphics corruption bug Changing the window background from setWindowTitle is bad as it is called from VT100Terminal Modified Paths: -------------- trunk/PseudoTerminal.m Modified: trunk/PseudoTerminal.m =================================================================== --- trunk/PseudoTerminal.m 2009-09-18 03:21:22 UTC (rev 1806) +++ trunk/PseudoTerminal.m 2009-09-18 03:22:14 UTC (rev 1807) @@ -1174,11 +1174,7 @@ if([self sendInputToAllSessions]) { title = [NSString stringWithFormat:@"☛%@", title]; - [[self window] setBackgroundColor: [NSColor highlightColor]]; } - else { - [[self window] setBackgroundColor: normalBackgroundColor]; - } [[self window] setTitle: title]; } @@ -1481,7 +1477,13 @@ NSLocalizedStringFromTableInBundle(@"Keyboard input will be sent to all sessions in this terminal.",@"iTerm", [NSBundle bundleForClass: [self class]], @"Keyboard Input"), NSLocalizedStringFromTableInBundle(@"OK",@"iTerm", [NSBundle bundleForClass: [self class]], @"Profile"), NSLocalizedStringFromTableInBundle(@"Cancel",@"iTerm", [NSBundle bundleForClass: [self class]], @"Cancel"), nil) == NSAlertDefaultReturn); - + + if(sendInputToAllSessions) { + [[self window] setBackgroundColor: [NSColor highlightColor]]; + } + else { + [[self window] setBackgroundColor: normalBackgroundColor]; + } } - (IBAction) toggleInputToAllSessions: (id) sender This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |