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

Avoid hitting window title change rate limit when the title isn't changing. Issue 5876

parent 4bde161c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1641,7 +1641,10 @@ ITERM_WEAKLY_REFERENCEABLE
if ((self.numberOfTabs == 1) && (self.tabs.firstObject.state & kPTYTabBellState) && !self.tabBarShouldBeVisible) {
title = [title stringByAppendingString:@" 🔔"];
}
if (liveResize_) {
if ((self.desiredTitle && [title isEqualToString:self.desiredTitle]) ||
[title isEqualToString:self.window.title]) {
return; // Title is already up to date
} else if (liveResize_) {
// During a live resize this has to be done immediately because the runloop doesn't get
// around to delayed performs until the live resize is done (bug 2812).
self.window.title = title;
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