Commit 0956dd96 authored by Jim Blandy's avatar Jim Blandy
Browse files

* xdisp.c (display_mode_line): If the only other frames are

	minibuffer frames, don't name the frame after the in the selected
	window.  We can use Fnext_frame to do this test easily.
parent 83762ba4
......@@ -1776,14 +1776,21 @@ display_mode_line (w)
#ifdef HAVE_X_WINDOWS
/* I'm trying this out because I saw Unimpress use it, but it's
possible that this may mess adversely with some window managers. jla */
possible that this may mess adversely with some window managers. -jla
Wouldn't it be nice to use something like mode-line-format to
describe frame titles? -JimB */
/* Change the title of the frame to the name of the buffer displayed
in the currently selected window. Don't do this for minibuffer frames,
and don't do it when there's only one non-minibuffer frame. */
if (FRAME_X_P (f)
&& ! FRAME_MINIBUF_ONLY_P (f)
&& w == XWINDOW (f->selected_window))
x_implicitly_set_name (f, ((XINT (Flength (Vframe_list)) > 1)
? XBUFFER (w->buffer)->name
: Qnil),
x_implicitly_set_name (f, (EQ (Fnext_frame (WINDOW_FRAME (w), Qnil),
WINDOW_FRAME (w))
? Qnil
: XBUFFER (w->buffer)->name),
Qnil);
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment