]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix disconnect errors on some X servers
authorPo Lu <luangruo@yahoo.com>
Thu, 10 Feb 2022 05:36:24 +0000 (13:36 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 10 Feb 2022 05:36:24 +0000 (13:36 +0800)
* 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

index a41ed62d5f8c04f6ad247b6d4481c2d08d2f565c..58f5cb847bdf192fe04413a547296e11393141a0 100644 (file)
@@ -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