emacs-diffs
[Top][All Lists]
Advanced

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

master ec027d873c: * src/xterm.c (x_scroll_run): Only flush GC if really


From: Po Lu
Subject: master ec027d873c: * src/xterm.c (x_scroll_run): Only flush GC if really necessary.
Date: Mon, 25 Apr 2022 23:58:45 -0400 (EDT)

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

    * src/xterm.c (x_scroll_run): Only flush GC if really necessary.
---
 src/xterm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 0f93e4807f..3abc67a4b1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9128,11 +9128,13 @@ x_scroll_run (struct window *w, struct run *run)
     }
 #endif
 
+#ifdef USE_CAIRO_XCB_SURFACE
   /* 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);
+#endif
 
 #ifdef USE_CAIRO
   if (FRAME_CR_CONTEXT (f))



reply via email to

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