From: Radon Rosborough Date: Thu, 13 May 2021 09:40:59 +0000 (+0200) Subject: Use an explicit line width of 1 on hollow cursors under X X-Git-Tag: emacs-28.0.90~2488 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=adbdf85e23f3e9c1e74002365a9c15643774bbaa;p=emacs.git Use an explicit line width of 1 on hollow cursors under X * src/xterm.c (x_draw_hollow_cursor): Specify a line width of 1 explicitly to avoid problems on some X implementations (bug#42452). --- diff --git a/src/xterm.c b/src/xterm.c index a663a0f1844..bdf0804f895 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9599,11 +9599,12 @@ x_draw_hollow_cursor (struct window *w, struct glyph_row *row) /* The foreground of cursor_gc is typically the same as the normal background color, which can cause the cursor box to be invisible. */ xgcv.foreground = f->output_data.x->cursor_pixel; + xgcv.line_width = 1; if (dpyinfo->scratch_cursor_gc) - XChangeGC (dpy, dpyinfo->scratch_cursor_gc, GCForeground, &xgcv); + XChangeGC (dpy, dpyinfo->scratch_cursor_gc, GCForeground | GCLineWidth, &xgcv); else dpyinfo->scratch_cursor_gc = XCreateGC (dpy, FRAME_X_DRAWABLE (f), - GCForeground, &xgcv); + GCForeground | GCLineWidth, &xgcv); gc = dpyinfo->scratch_cursor_gc; /* When on R2L character, show cursor at the right edge of the