From: Gerd Moellmann Date: Fri, 6 Aug 1999 15:05:34 +0000 (+0000) Subject: (x_display_and_set_cursor): If cursor_in_echo_area, X-Git-Tag: emacs-pretest-21.0.90~7250 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b4a7047ab50bfbad27d26c048babd55fccbf0a2;p=emacs.git (x_display_and_set_cursor): If cursor_in_echo_area, show hollow box cursor for windows other than echo_area_window, show normal cursor for echo_area_window. --- diff --git a/src/xterm.c b/src/xterm.c index 15f2ccfa6d8..7d166ada160 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10039,18 +10039,30 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y) the cursor type given by the frame parameter. If explicitly marked off, draw no cursor. In all other cases, we want a hollow box cursor. */ - if (w != XWINDOW (selected_window) - || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame) + if (cursor_in_echo_area + && FRAME_HAS_MINIBUF_P (f) + && EQ (FRAME_MINIBUF_WINDOW (f), echo_area_window)) { - if (MINI_WINDOW_P (w)) - new_cursor_type = NO_CURSOR; + if (w == XWINDOW (echo_area_window)) + new_cursor_type = FRAME_DESIRED_CURSOR (f); else new_cursor_type = HOLLOW_BOX_CURSOR; } - else if (w->cursor_off_p) - new_cursor_type = NO_CURSOR; else - new_cursor_type = FRAME_DESIRED_CURSOR (f); + { + if (w != XWINDOW (selected_window) + || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame) + { + if (MINI_WINDOW_P (w)) + new_cursor_type = NO_CURSOR; + else + new_cursor_type = HOLLOW_BOX_CURSOR; + } + else if (w->cursor_off_p) + new_cursor_type = NO_CURSOR; + else + new_cursor_type = FRAME_DESIRED_CURSOR (f); + } /* If cursor is currently being shown and we don't want it to be or it is in the wrong place, or the cursor type is not what we want,