From: Po Lu Date: Thu, 10 Feb 2022 05:36:24 +0000 (+0800) Subject: Fix disconnect errors on some X servers X-Git-Tag: emacs-29.0.90~2396 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aad91285c370dd5e50e585b453b9a843113be15f;p=emacs.git Fix disconnect errors on some X servers * src/xfns.c (x_make_gc): Don't set FillOpaqueStippled on cursor GC. The reason is that some X servers break on such a fill style if the operation being performed is not a stiple operation. --- diff --git a/src/xfns.c b/src/xfns.c index a41ed62d5f8..58f5cb847bd 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4055,11 +4055,9 @@ x_make_gc (struct frame *f) /* Cursor has cursor-color background, background-color foreground. */ gc_values.foreground = FRAME_BACKGROUND_PIXEL (f); gc_values.background = f->output_data.x->cursor_pixel; - gc_values.fill_style = FillOpaqueStippled; f->output_data.x->cursor_gc = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_DRAWABLE (f), - (GCForeground | GCBackground - | GCFillStyle | GCLineWidth), + (GCForeground | GCBackground | GCLineWidth), &gc_values); /* Create the gray border tile used when the pointer is not in