(x_consider_frame_title): Don't count the tooltip frame
authorJason Rumney <jasonr@gnu.org>
Wed, 9 Jan 2002 22:42:49 +0000 (22:42 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 9 Jan 2002 22:42:49 +0000 (22:42 +0000)
when checking for multiple frames.

src/ChangeLog
src/xdisp.c

index bd5fbc5..13536e5 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-09  Jason Rumney  <jasonr@gnu.org>
+
+       * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
+       when checking for multiple frames.
+
 2002-01-08  Richard M. Stallman  <rms@gnu.org>
 
        * window.c (delete_window): Rewrite the code for changing the
index 0d25501..d749112 100644 (file)
@@ -7224,11 +7224,13 @@ x_consider_frame_title (frame)
 
       for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail))
        {
-         struct frame *tf = XFRAME (XCAR (tail));
+         Lisp_Object other_frame = XCAR (tail);
+         struct frame *tf = XFRAME (other_frame);
 
          if (tf != f 
              && FRAME_KBOARD (tf) == FRAME_KBOARD (f)
              && !FRAME_MINIBUF_ONLY_P (tf)
+             && !EQ (other_frame, tip_frame)
              && (FRAME_VISIBLE_P (tf) || FRAME_ICONIFIED_P (tf)))
            break;
        }