From: Po Lu Date: Tue, 26 Apr 2022 03:57:47 +0000 (+0800) Subject: * src/xterm.c (x_scroll_run): Only flush GC if really necessary. X-Git-Tag: emacs-29.0.90~1931^2~302 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec027d873c5660463cd65ce4e9445ed549b03ce4;p=emacs.git * src/xterm.c (x_scroll_run): Only flush GC if really necessary. --- diff --git a/src/xterm.c b/src/xterm.c index 0f93e4807fc..3abc67a4b10 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))