aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2001-11-12 05:35:02 +0000
committerRichard M. Stallman2001-11-12 05:35:02 +0000
commit2c850e26cee28949b0787c51001285353d22fd9b (patch)
tree04433e633fadd79bb63a538f19c39fc85a1e358f /src
parenteafb659ab4116a0b20237a50c2b31e833a3dba9a (diff)
downloademacs-2c850e26cee28949b0787c51001285353d22fd9b.tar.gz
emacs-2c850e26cee28949b0787c51001285353d22fd9b.zip
(XTread_socket): Don't update focus for EnterNotify or
LeaveNotify events. Only FocusIn and FocusOut do that now. (x_display_and_set_cursor): Do display hollow cursors in active minibuffer windows when they are not selected.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 5761d5c3be4..2a700b1a617 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10669,6 +10669,7 @@ XTread_socket (sd, bufp, numchars, expected)
10669 { 10669 {
10670 f = x_any_window_to_frame (dpyinfo, event.xcrossing.window); 10670 f = x_any_window_to_frame (dpyinfo, event.xcrossing.window);
10671 10671
10672#if 0
10672 if (event.xcrossing.focus) 10673 if (event.xcrossing.focus)
10673 { 10674 {
10674 /* Avoid nasty pop/raise loops. */ 10675 /* Avoid nasty pop/raise loops. */
@@ -10682,7 +10683,8 @@ XTread_socket (sd, bufp, numchars, expected)
10682 } 10683 }
10683 else if (f == dpyinfo->x_focus_frame) 10684 else if (f == dpyinfo->x_focus_frame)
10684 x_new_focus_frame (dpyinfo, 0); 10685 x_new_focus_frame (dpyinfo, 0);
10685 10686#endif
10687
10686 /* EnterNotify counts as mouse movement, 10688 /* EnterNotify counts as mouse movement,
10687 so update things that depend on mouse position. */ 10689 so update things that depend on mouse position. */
10688 if (f && !f->output_data.x->hourglass_p) 10690 if (f && !f->output_data.x->hourglass_p)
@@ -10746,15 +10748,18 @@ XTread_socket (sd, bufp, numchars, expected)
10746 bufp += n, count += n, numchars -= n; 10748 bufp += n, count += n, numchars -= n;
10747 } 10749 }
10748 10750
10751#if 0
10749 if (event.xcrossing.focus) 10752 if (event.xcrossing.focus)
10750 x_mouse_leave (dpyinfo); 10753 x_mouse_leave (dpyinfo);
10751 else 10754 else
10752 { 10755 {
10753 if (f == dpyinfo->x_focus_event_frame) 10756 if (f == dpyinfo->x_focus_event_frame)
10754 dpyinfo->x_focus_event_frame = 0; 10757 dpyinfo->x_focus_event_frame = 0;
10755 if (f == dpyinfo->x_focus_frame) 10758 if (dpyinfo->x_focus_event_frame != 0
10759 && f == dpyinfo->x_focus_frame)
10756 x_new_focus_frame (dpyinfo, 0); 10760 x_new_focus_frame (dpyinfo, 0);
10757 } 10761 }
10762#endif
10758 } 10763 }
10759 goto OTHER; 10764 goto OTHER;
10760 10765
@@ -11516,7 +11521,7 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y)
11516 if (f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame 11521 if (f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame
11517 || w != XWINDOW (f->selected_window)) 11522 || w != XWINDOW (f->selected_window))
11518 { 11523 {
11519 if (MINI_WINDOW_P (w) 11524 if ((MINI_WINDOW_P (w) && minibuf_level == 0)
11520 || !cursor_non_selected 11525 || !cursor_non_selected
11521 || NILP (XBUFFER (w->buffer)->cursor_type)) 11526 || NILP (XBUFFER (w->buffer)->cursor_type))
11522 new_cursor_type = NO_CURSOR; 11527 new_cursor_type = NO_CURSOR;