# HG changeset patch # User Gerd Moellmann # Date 933951934 0 # Node ID 3a5376feb9aaff5c5eee3954b2c8a86e1f6b4df9 # Parent a14edd4a5f4abe3a46f544c711ee221d5e2b6b72 (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 -r a14edd4a5f4a -r 3a5376feb9aa src/xterm.c --- a/src/xterm.c Fri Aug 06 15:05:27 1999 +0000 +++ b/src/xterm.c Fri Aug 06 15:05:34 1999 +0000 @@ -10039,18 +10039,30 @@ 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 (MINI_WINDOW_P (w)) + if (cursor_in_echo_area + && FRAME_HAS_MINIBUF_P (f) + && EQ (FRAME_MINIBUF_WINDOW (f), echo_area_window)) + { + if (w == XWINDOW (echo_area_window)) + new_cursor_type = FRAME_DESIRED_CURSOR (f); + else + new_cursor_type = HOLLOW_BOX_CURSOR; + } + else + { + 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 = HOLLOW_BOX_CURSOR; - } - else if (w->cursor_off_p) - new_cursor_type = NO_CURSOR; - else - new_cursor_type = FRAME_DESIRED_CURSOR (f); + 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,