Commit da893f1f authored by Richard M. Stallman's avatar Richard M. Stallman

(dumpglyphs): For cursor foreground, try the

face's background before the face's foreground.
(XTread_socket): Call note_mouse_movement for EnterNotify.
parent 16d03a05
......@@ -665,11 +665,11 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground)
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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
}
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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment