aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-06 15:05:34 +0000
committerGerd Moellmann1999-08-06 15:05:34 +0000
commit9b4a7047ab50bfbad27d26c048babd55fccbf0a2 (patch)
tree6178fd3df292b70f9b702d74db7458483e040521 /src/xterm.c
parent862b479030730c1ddb60d9a6dc55e1f8a12e59eb (diff)
downloademacs-9b4a7047ab50bfbad27d26c048babd55fccbf0a2.tar.gz
emacs-9b4a7047ab50bfbad27d26c048babd55fccbf0a2.zip
(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.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c26
1 files changed, 19 insertions, 7 deletions
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)
10039 the cursor type given by the frame parameter. If explicitly 10039 the cursor type given by the frame parameter. If explicitly
10040 marked off, draw no cursor. In all other cases, we want a hollow 10040 marked off, draw no cursor. In all other cases, we want a hollow
10041 box cursor. */ 10041 box cursor. */
10042 if (w != XWINDOW (selected_window) 10042 if (cursor_in_echo_area
10043 || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame) 10043 && FRAME_HAS_MINIBUF_P (f)
10044 && EQ (FRAME_MINIBUF_WINDOW (f), echo_area_window))
10044 { 10045 {
10045 if (MINI_WINDOW_P (w)) 10046 if (w == XWINDOW (echo_area_window))
10046 new_cursor_type = NO_CURSOR; 10047 new_cursor_type = FRAME_DESIRED_CURSOR (f);
10047 else 10048 else
10048 new_cursor_type = HOLLOW_BOX_CURSOR; 10049 new_cursor_type = HOLLOW_BOX_CURSOR;
10049 } 10050 }
10050 else if (w->cursor_off_p)
10051 new_cursor_type = NO_CURSOR;
10052 else 10051 else
10053 new_cursor_type = FRAME_DESIRED_CURSOR (f); 10052 {
10053 if (w != XWINDOW (selected_window)
10054 || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame)
10055 {
10056 if (MINI_WINDOW_P (w))
10057 new_cursor_type = NO_CURSOR;
10058 else
10059 new_cursor_type = HOLLOW_BOX_CURSOR;
10060 }
10061 else if (w->cursor_off_p)
10062 new_cursor_type = NO_CURSOR;
10063 else
10064 new_cursor_type = FRAME_DESIRED_CURSOR (f);
10065 }
10054 10066
10055 /* If cursor is currently being shown and we don't want it to be or 10067 /* If cursor is currently being shown and we don't want it to be or
10056 it is in the wrong place, or the cursor type is not what we want, 10068 it is in the wrong place, or the cursor type is not what we want,