Don't touch window title before an OSC is received.

Fixes the "window title being clobbered" issue raised in issue 137.

Signed-off-by: sqweek <sqweek@gmail.com>

Closes #380. Closes #137.
This commit is contained in:
sqweek
2013-01-18 21:50:43 +08:00
committed by Keith Winstein
parent 13a16332d4
commit 5af90cc1ac
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ std::string Display::new_frame( bool initialized, const Framebuffer &last, const
}
/* has icon name or window title changed? */
if ( has_title &&
if ( has_title && f.is_title_initialized() &&
( (!initialized)
|| (f.get_icon_name() != frame.last_frame.get_icon_name())
|| (f.get_window_title() != frame.last_frame.get_window_title()) ) ) {