]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (handle_one_xevent): Drop frame picture on configure.
authorPo Lu <luangruo@yahoo.com>
Mon, 24 Jan 2022 04:54:26 +0000 (12:54 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 24 Jan 2022 04:54:26 +0000 (12:54 +0800)
src/xterm.c

index 436238c4a1723be257fe200fd1d97a1f9d8f05f3..e5bcff10676df171b09be41d005bf1527af1ff73 100644 (file)
@@ -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)