From ec027d873c5660463cd65ce4e9445ed549b03ce4 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 26 Apr 2022 11:57:47 +0800 Subject: [PATCH] * 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 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)) -- 2.39.5