emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master aad91285c3: Fix disconnect errors on some X servers


From: Po Lu
Subject: master aad91285c3: Fix disconnect errors on some X servers
Date: Thu, 10 Feb 2022 00:41:58 -0500 (EST)

branch: master
commit aad91285c370dd5e50e585b453b9a843113be15f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 a41ed62d5f..58f5cb847b 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]