changeset 7469:24b292242269

(dumpglyphs): For cursor foreground, try the face's background before the face's foreground. (XTread_socket): Call note_mouse_movement for EnterNotify.
author Richard M. Stallman <rms@gnu.org>
date Thu, 12 May 1994 08:46:03 +0000
parents 19be778d4966
children c5dab4ea2a4c
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu May 12 07:44:36 1994 +0000
+++ b/src/xterm.c	Thu May 12 08:46:03 1994 +0000
@@ -665,11 +665,11 @@
 		if (face == FRAME_DEFAULT_FACE (f))
 		  xgcv.foreground = f->display.x->cursor_foreground_pixel;
 		else
-		  xgcv.foreground = face->foreground;
+		  xgcv.foreground = face->background;
 		/* If the glyph would be invisible,
 		   try a different foreground.  */
 		if (xgcv.foreground == xgcv.background)
-		  xgcv.foreground = face->background;
+		  xgcv.foreground = face->foreground;
 		if (xgcv.foreground == xgcv.background)
 		  xgcv.foreground = f->display.x->cursor_foreground_pixel;
 		if (xgcv.foreground == xgcv.background)
@@ -3903,6 +3903,10 @@
 	    }
 	  else if (f == x_focus_frame)
 	    x_new_focus_frame (0);
+	  /* EnterNotify counts as mouse movement,
+	     so update things that depend on mouse position.  */
+	  if (f)
+	    note_mouse_movement (f, &event.xmotion);
 #ifdef USE_X_TOOLKIT
 	  goto OTHER;
 #endif /* USE_X_TOOLKIT */