]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_mode_spec): Display non-nil title as the frame's
authorEli Zaretskii <eliz@gnu.org>
Mon, 13 Oct 1997 17:08:02 +0000 (17:08 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 13 Oct 1997 17:08:02 +0000 (17:08 +0000)
name only on FRAME_WINDOW_P frames.

src/xdisp.c

index 26eca6d258be01b6fc2ee9404bd2525c902e251b..b7c0c274c1fa17c7105d56ee8b82a31745a18724 100644 (file)
@@ -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;