From 261bfd0e0e4379a33fda653cf3d618d99174578f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 13 Oct 1997 17:08:02 +0000 Subject: [PATCH] (decode_mode_spec): Display non-nil title as the frame's name only on FRAME_WINDOW_P frames. --- src/xdisp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 26eca6d258..b7c0c274c1 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; -- 2.39.2