diff options
| author | Richard M. Stallman | 1994-05-12 08:46:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-12 08:46:03 +0000 |
| commit | da893f1f843bc3dc2403e8438bbde4798e9bf738 (patch) | |
| tree | 44455d227a5bb5c0b34a78d3e07eeaf345790419 /src/xterm.c | |
| parent | 16d03a05a16f390a2196d729d470fe48e17e3e0d (diff) | |
| download | emacs-da893f1f843bc3dc2403e8438bbde4798e9bf738.tar.gz emacs-da893f1f843bc3dc2403e8438bbde4798e9bf738.zip | |
(dumpglyphs): For cursor foreground, try the
face's background before the face's foreground.
(XTread_socket): Call note_mouse_movement for EnterNotify.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index e994465c4bc..bf5bfdc0f72 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -665,11 +665,11 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground) | |||
| 665 | if (face == FRAME_DEFAULT_FACE (f)) | 665 | if (face == FRAME_DEFAULT_FACE (f)) |
| 666 | xgcv.foreground = f->display.x->cursor_foreground_pixel; | 666 | xgcv.foreground = f->display.x->cursor_foreground_pixel; |
| 667 | else | 667 | else |
| 668 | xgcv.foreground = face->foreground; | 668 | xgcv.foreground = face->background; |
| 669 | /* If the glyph would be invisible, | 669 | /* If the glyph would be invisible, |
| 670 | try a different foreground. */ | 670 | try a different foreground. */ |
| 671 | if (xgcv.foreground == xgcv.background) | 671 | if (xgcv.foreground == xgcv.background) |
| 672 | xgcv.foreground = face->background; | 672 | xgcv.foreground = face->foreground; |
| 673 | if (xgcv.foreground == xgcv.background) | 673 | if (xgcv.foreground == xgcv.background) |
| 674 | xgcv.foreground = f->display.x->cursor_foreground_pixel; | 674 | xgcv.foreground = f->display.x->cursor_foreground_pixel; |
| 675 | if (xgcv.foreground == xgcv.background) | 675 | if (xgcv.foreground == xgcv.background) |
| @@ -3903,6 +3903,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3903 | } | 3903 | } |
| 3904 | else if (f == x_focus_frame) | 3904 | else if (f == x_focus_frame) |
| 3905 | x_new_focus_frame (0); | 3905 | x_new_focus_frame (0); |
| 3906 | /* EnterNotify counts as mouse movement, | ||
| 3907 | so update things that depend on mouse position. */ | ||
| 3908 | if (f) | ||
| 3909 | note_mouse_movement (f, &event.xmotion); | ||
| 3906 | #ifdef USE_X_TOOLKIT | 3910 | #ifdef USE_X_TOOLKIT |
| 3907 | goto OTHER; | 3911 | goto OTHER; |
| 3908 | #endif /* USE_X_TOOLKIT */ | 3912 | #endif /* USE_X_TOOLKIT */ |