From: Eli Zaretskii Date: Mon, 13 Oct 1997 17:08:02 +0000 (+0000) Subject: (decode_mode_spec): Display non-nil title as the frame's X-Git-Tag: emacs-20.3~3034 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=261bfd0e0e4379a33fda653cf3d618d99174578f;p=emacs.git (decode_mode_spec): Display non-nil title as the frame's name only on FRAME_WINDOW_P frames. --- diff --git a/src/xdisp.c b/src/xdisp.c index 26eca6d258b..b7c0c274c1f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4309,7 +4309,10 @@ decode_mode_spec (w, c, spec_width, maxwidth) case 'F': /* %F displays the frame name. */ - if (!NILP (f->title)) + /* Systems that can only display a single frame at a time should + NOT replace the frame name with the (constant) frame title, + since then they won't be able to tell which frame is that. */ + if (FRAME_WINDOW_P (f) && !NILP (f->title)) return (char *) XSTRING (f->title)->data; if (f->explicit_name || ! FRAME_WINDOW_P (f)) return (char *) XSTRING (f->name)->data;