aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-15 20:17:27 +0000
committerGerd Moellmann2001-01-15 20:17:27 +0000
commite4ded23c970d2e5061064f85be8c9b559a000320 (patch)
treea4c336dffb8f83b565d8f5776f7c5a5a87c4ed1a /src
parent4ece8d6132b2caf4a9ecc85c62c3359abb7fc327 (diff)
downloademacs-e4ded23c970d2e5061064f85be8c9b559a000320.tar.gz
emacs-e4ded23c970d2e5061064f85be8c9b559a000320.zip
(x_set_mouse_face_gc): If the last use mouse face
has gone in the meantime, use face MOUSE_FACE_ID.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 38a5dafd89d..5ef6e1787f6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-01-15 Gerd Moellmann <gerd@gnu.org> 12001-01-15 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
4 has gone in the meantime, use face MOUSE_FACE_ID.
5
3 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If 6 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
4 x_display_info_for_display returns null, don't try to close 7 x_display_info_for_display returns null, don't try to close
5 the display; we didn't open it. 8 the display; we didn't open it.
@@ -17,7 +20,7 @@
17 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by 20 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
18 truncation glyphs. 21 truncation glyphs.
19 (display_line): Optimize for wide characters. 22 (display_line): Optimize for wide characters.
20 (display_string): Don't try to display a multi-column characters 23 (display_string): Don't try to display a multi-column character
21 partially. On ttys, produce more than one truncation glyph for 24 partially. On ttys, produce more than one truncation glyph for
22 multi-column characters that don't fit on the line. 25 multi-column characters that don't fit on the line.
23 26
diff --git a/src/xterm.c b/src/xterm.c
index 0cd68a7f9e3..1ad1fd4d1f9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2661,9 +2661,12 @@ x_set_mouse_face_gc (s)
2661 int face_id; 2661 int face_id;
2662 struct face *face; 2662 struct face *face;
2663 2663
2664 /* What face has to be used for the mouse face? */ 2664 /* What face has to be used last for the mouse face? */
2665 face_id = FRAME_X_DISPLAY_INFO (s->f)->mouse_face_face_id; 2665 face_id = FRAME_X_DISPLAY_INFO (s->f)->mouse_face_face_id;
2666 face = FACE_FROM_ID (s->f, face_id); 2666 face = FACE_FROM_ID (s->f, face_id);
2667 if (face == NULL)
2668 face = FACE_FROM_ID (s->f, MOUSE_FACE_ID);
2669
2667 if (s->first_glyph->type == CHAR_GLYPH) 2670 if (s->first_glyph->type == CHAR_GLYPH)
2668 face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch); 2671 face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch);
2669 else 2672 else