summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-07-21 07:46:14 +0000
committerRichard M. Stallman <rms@gnu.org>1995-07-21 07:46:14 +0000
commit1064d5496252ac687cf2f06395659b973ea01dff (patch)
treeccfa0cedf8683b4fb074bbd85fcee665fa9cbbcc /src/dispnew.c
parent7c08e4e47f0612c57113e2021d1ffac08a0ee6e0 (diff)
downloademacs-1064d5496252ac687cf2f06395659b973ea01dff.tar.gz
(update_frame): Check that the echo area is in the frame being displayed.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index bc79d41463b..455d1585dd4 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1328,13 +1328,16 @@ update_frame (f, force, inhibit_hairy_id)
if (!pause)
{
if ((cursor_in_echo_area
- && FRAME_HAS_MINIBUF_P (f)
- && EQ (FRAME_MINIBUF_WINDOW (f), minibuf_window))
- /* If we are showing a message instead of the minibuffer,
- show the cursor for the message instead of for the
- (now hidden) minibuffer contents. */
- || (EQ (minibuf_window, selected_window)
- && echo_area_glyphs != 0))
+ /* If we are showing a message instead of the minibuffer,
+ show the cursor for the message instead of for the
+ (now hidden) minibuffer contents. */
+ || (EQ (minibuf_window, selected_window)
+ && EQ (minibuf_window, echo_area_window)
+ && echo_area_glyphs != 0))
+ /* These cases apply only to the frame that contains
+ the active minibuffer window. */
+ && FRAME_HAS_MINIBUF_P (f)
+ && EQ (FRAME_MINIBUF_WINDOW (f), minibuf_window))
{
int top = XINT (XWINDOW (FRAME_MINIBUF_WINDOW (f))->top);
int row, col;