From eac4b924cb86ea023d660f2b155ba1f36b4a5843 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 24 Jan 2022 12:54:26 +0800 Subject: [PATCH] * src/xterm.c (handle_one_xevent): Drop frame picture on configure. --- src/xterm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 436238c4a17..e5bcff10676 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9892,6 +9892,15 @@ handle_one_xevent (struct x_display_info *dpyinfo, block_input (); if (f && FRAME_X_DOUBLE_BUFFERED_P (f)) font_drop_xrender_surfaces (f); +#ifdef HAVE_XRENDER + if (f && FRAME_X_DOUBLE_BUFFERED_P (f) + && FRAME_X_PICTURE (f) != None) + { + XRenderFreePicture (FRAME_X_DISPLAY (f), + FRAME_X_PICTURE (f)); + FRAME_X_PICTURE (f) = None; + } +#endif unblock_input (); #if defined USE_CAIRO && !defined USE_GTK if (f) -- 2.39.2