From d15dafeefb58fc521186385a1a703f7f660f2f6b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 30 Nov 2021 09:11:42 +0800 Subject: [PATCH] Stop setting mouse face GC manually, as it is no longer required * src/pgtkterm.c (x_set_mouse_face_gc): Remove obsolete code. --- src/pgtkterm.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 8353a9ca4dc..d9b2e385fc5 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -1007,20 +1007,6 @@ x_set_cursor_gc (struct glyph_string *s) static void x_set_mouse_face_gc (struct glyph_string *s) { - int face_id; - struct face *face; - - /* What face has to be used last for the mouse face? */ - face_id = MOUSE_HL_INFO (s->f)->mouse_face_face_id; - face = FACE_FROM_ID_OR_NULL (s->f, face_id); - if (face == NULL) - face = FACE_FROM_ID (s->f, MOUSE_FACE_ID); - - if (s->first_glyph->type == CHAR_GLYPH) - face_id = FACE_FOR_CHAR (s->f, face, s->first_glyph->u.ch, -1, Qnil); - else - face_id = FACE_FOR_CHAR (s->f, face, 0, -1, Qnil); - s->face = FACE_FROM_ID (s->f, face_id); prepare_face_for_display (s->f, s->face); if (s->font == s->face->font) -- 2.39.5