aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-05-09 02:38:03 +0000
committerKarl Heuer1995-05-09 02:38:03 +0000
commit3450d04cc892c34ca7223a5ee3e80068510f992c (patch)
tree907e6bea703207e55dffb062bcbf6b93157cf553 /src
parentefdeeb2b7829d7e154a839696f5f66b05f425b41 (diff)
downloademacs-3450d04cc892c34ca7223a5ee3e80068510f992c.tar.gz
emacs-3450d04cc892c34ca7223a5ee3e80068510f992c.zip
(x_consider_frame_title): When setting multiple_frames,
ignore invisible frames and frames on other displays.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 38aa1f060cf..cd5ec937217 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -624,7 +624,23 @@ x_consider_frame_title (frame)
624 624
625 if (!FRAME_X_P (f) || FRAME_MINIBUF_ONLY_P (f) || f->explicit_name) 625 if (!FRAME_X_P (f) || FRAME_MINIBUF_ONLY_P (f) || f->explicit_name)
626 return; 626 return;
627 multiple_frames = !EQ (Fnext_frame (frame, Qnil), frame); 627
628 /* Do we have more than one visible frame on this X display? */
629 {
630 Lisp_Object tail;
631
632 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr)
633 {
634 FRAME_PTR tf = XFRAME (XCONS (tail)->car);
635
636 if (tf != f && tf->kboard == f->kboard && !FRAME_MINIBUF_ONLY_P (tf)
637 && (FRAME_VISIBLE_P (tf) || FRAME_ICONIFIED_P (tf)))
638 break;
639 }
640
641 multiple_frames = CONSP (tail);
642 }
643
628 obuf = current_buffer; 644 obuf = current_buffer;
629 Fset_buffer (XWINDOW (f->selected_window)->buffer); 645 Fset_buffer (XWINDOW (f->selected_window)->buffer);
630 fmt = (FRAME_ICONIFIED_P (f) ? Vicon_title_format : Vframe_title_format); 646 fmt = (FRAME_ICONIFIED_P (f) ? Vicon_title_format : Vframe_title_format);
@@ -4001,8 +4017,10 @@ If this is zero, point is always centered after it moves off frame.");
4001 highlight_nonselected_windows = 1; 4017 highlight_nonselected_windows = 1;
4002 4018
4003 DEFVAR_BOOL ("multiple-frames", &multiple_frames, 4019 DEFVAR_BOOL ("multiple-frames", &multiple_frames,
4004 "Non-nil means more than one frame is in use, not counting minibuffer frames.\n\ 4020 "Non-nil if more than one frame is visible on this display.\n\
4005Not guaranteed to be accurate except while parsing frame-title-format."); 4021Minibuffer-only frames don't count, but iconified frames do.\n\
4022This variable is not guaranteed to be accurate except while parsing\n\
4023frame-title-format.");
4006 4024
4007 DEFVAR_LISP ("frame-title-format", &Vframe_title_format, 4025 DEFVAR_LISP ("frame-title-format", &Vframe_title_format,
4008 "Template for displaying the titlebar of visible frames.\n\ 4026 "Template for displaying the titlebar of visible frames.\n\