summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index e35502375bc..f6ca3866c47 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3665,6 +3665,8 @@ decode_mode_spec (w, c, spec_width, maxwidth)
case 'F':
/* %F displays the frame name. */
#ifdef MULTI_FRAME
+ if (!NILP (selected_frame->title))
+ return (char *) XSTRING (selected_frame->title)->data;
return (char *) XSTRING (selected_frame->name)->data;
#else
return "Emacs";