From aad91285c370dd5e50e585b453b9a843113be15f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 10 Feb 2022 13:36:24 +0800 Subject: [PATCH] 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. --- src/xfns.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.39.5