int height = FONT_HEIGHT (s->font), ascent = FONT_BASE (s->font);
x_xr_apply_ext_clip (s->f, gc);
- x_xrender_color_from_gc_background (s->f, gc, &xc, true);
+ x_xrender_color_from_gc_background (s->f, gc, &xc,
+ s->hl != DRAW_CURSOR);
XRenderFillRectangle (FRAME_X_DISPLAY (s->f),
PictOpSrc, FRAME_X_PICTURE (s->f),
&xc, x, y - ascent, s->width, height);
0, 0, s->clip, s->num_clips);
else
x_xr_reset_ext_clip (f);
- x_xrender_color_from_gc_background (s->f, s->gc, &xc, true);
+ x_xrender_color_from_gc_background (s->f, s->gc, &xc, s->hl != DRAW_CURSOR);
XRenderFillRectangle (FRAME_X_DISPLAY (s->f),
PictOpSrc, FRAME_X_PICTURE (s->f),
&xc, x, y - ascent, s->width, height);
static void
x_clear_glyph_string_rect (struct glyph_string *s, int x, int y, int w, int h)
{
- x_clear_rectangle (s->f, s->gc, x, y, w, h, true);
+ x_clear_rectangle (s->f, s->gc, x, y, w, h,
+ (s->first_glyph->type != STRETCH_GLYPH
+ || s->hl != DRAW_CURSOR));
}