]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (x_scroll_run): Only flush GC if really necessary.
authorPo Lu <luangruo@yahoo.com>
Tue, 26 Apr 2022 03:57:47 +0000 (11:57 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 26 Apr 2022 03:58:35 +0000 (11:58 +0800)
src/xterm.c

index 0f93e4807fc60bff8943d5c47c72b10f1452ad04..3abc67a4b10583a8fd291640520c3c3f817da9bb 100644 (file)
@@ -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))