From: Po Lu Date: Mon, 24 Jan 2022 04:54:26 +0000 (+0800) Subject: * src/xterm.c (handle_one_xevent): Drop frame picture on configure. X-Git-Tag: emacs-29.0.90~2823 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eac4b924cb86ea023d660f2b155ba1f36b4a5843;p=emacs.git * src/xterm.c (handle_one_xevent): Drop frame picture on configure. --- 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)