# HG changeset patch # User Jim Blandy # Date 711750666 0 # Node ID dcfb4a00adb3c026410d74eb18429bb397792509 # Parent d7f1e2db9faf3cf6fbf78671d388f0c25b2a4c74 entered into RCS diff -r d7f1e2db9faf -r dcfb4a00adb3 src/xdisp.c --- a/src/xdisp.c Tue Jul 21 19:48:07 1992 +0000 +++ b/src/xdisp.c Tue Jul 21 20:31:06 1992 +0000 @@ -1780,10 +1780,11 @@ if (FRAME_IS_X (f) && ! FRAME_MINIBUF_ONLY_P (f) - && w == XWINDOW (f->selected_window) - && XINT (Flength (Vframe_list)) > 1 - && (NILP (Fstring_equal (XBUFFER (w->buffer)->name, f->name)))) - x_set_name (f, XBUFFER (w->buffer)->name, Qnil); + && w == XWINDOW (f->selected_window)) + x_set_name (f, ((XINT (Flength (Vframe_list)) > 1) + ? XBUFFER (w->buffer)->name + : Qnil), + Qnil); #endif }