diff options
| -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 */ |