emacs-diffs
[Top][All Lists]
Advanced

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

master 3c5aad0b8b: Flush default GC before using it in functions that ac


From: Po Lu
Subject: master 3c5aad0b8b: Flush default GC before using it in functions that accept a GContext
Date: Fri, 4 Mar 2022 22:14:42 -0500 (EST)

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

    Flush default GC before using it in functions that accept a GContext
    
    * src/xterm.c (x_scroll_run): Flush normal_gc, since some of the
    following code depends on it being up-to-date.
---
 src/xterm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 55224d93c9..5f8e804c62 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5983,6 +5983,12 @@ x_scroll_run (struct window *w, struct run *run)
     }
 #endif
 
+  /* Some of the following code depends on `normal_gc' being
+     up-to-date on the X server, but doesn't call a routine that will
+     flush it first.  So do this ourselves instead.  */
+  XFlushGC (FRAME_X_DISPLAY (f),
+           f->output_data.x->normal_gc);
+
 #ifdef USE_CAIRO
   if (FRAME_CR_CONTEXT (f))
     {



reply via email to

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