Mercurial > emacs
comparison src/xterm.c @ 25191:3a5376feb9aa
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 06 Aug 1999 15:05:34 +0000 |
parents | 710445260df6 |
children | 621067279f19 |
comparison
equal
deleted
inserted
replaced
25190:a14edd4a5f4a | 25191:3a5376feb9aa |
---|---|
10037 mini-buffer window, we want the cursor only to appear if we are | 10037 mini-buffer window, we want the cursor only to appear if we are |
10038 reading input from this window. For the selected window, we want | 10038 reading input from this window. For the selected window, we want |
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 { | 10044 && EQ (FRAME_MINIBUF_WINDOW (f), echo_area_window)) |
10045 if (MINI_WINDOW_P (w)) | 10045 { |
10046 if (w == XWINDOW (echo_area_window)) | |
10047 new_cursor_type = FRAME_DESIRED_CURSOR (f); | |
10048 else | |
10049 new_cursor_type = HOLLOW_BOX_CURSOR; | |
10050 } | |
10051 else | |
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) | |
10046 new_cursor_type = NO_CURSOR; | 10062 new_cursor_type = NO_CURSOR; |
10047 else | 10063 else |
10048 new_cursor_type = HOLLOW_BOX_CURSOR; | 10064 new_cursor_type = FRAME_DESIRED_CURSOR (f); |
10049 } | 10065 } |
10050 else if (w->cursor_off_p) | |
10051 new_cursor_type = NO_CURSOR; | |
10052 else | |
10053 new_cursor_type = FRAME_DESIRED_CURSOR (f); | |
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, |
10057 erase it. */ | 10069 erase it. */ |
10058 if (w->phys_cursor_on_p | 10070 if (w->phys_cursor_on_p |