# HG changeset patch # User Kenichi Handa # Date 1141281548 0 # Node ID aa91709ce7ed93794f7cf3f87a5fec80e676c250 # Parent 51cc1fad218dcc5563a753e531607e1f1e6cfe24 (x_set_glyph_string_clipping_exactly): Set src->clip_head and src->clip_tail temporarily instead of src->hl. diff -r 51cc1fad218d -r aa91709ce7ed src/xterm.c --- a/src/xterm.c Thu Mar 02 01:49:01 2006 +0000 +++ b/src/xterm.c Thu Mar 02 06:39:08 2006 +0000 @@ -1185,11 +1185,13 @@ struct glyph_string *src, *dst; { XRectangle r; - enum draw_glyphs_face save = src->hl; - - src->hl = DRAW_CURSOR; /* This foces clipping just this glyph. */ + struct glyph_string *clip_head = src->clip_head; + struct glyph_string *clip_tail = src->clip_tail; + + /* This foces clipping just this glyph string. */ + src->clip_head = src->clip_tail = src; get_glyph_string_clip_rect (src, &r); - src->hl = save; + src->clip_head = clip_head, src->clip_tail = clip_tail; XSetClipRectangles (dst->display, dst->gc, 0, 0, &r, 1, Unsorted); }