]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build --without-xdbe
authorEli Zaretskii <eliz@gnu.org>
Tue, 21 Feb 2023 16:15:35 +0000 (18:15 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 21 Feb 2023 16:15:35 +0000 (18:15 +0200)
* src/xterm.c (x_end_cr_clip, handle_one_xevent): Condition
double-buffering code on HAVE_XDBE.  (Bug#61667)

src/xterm.c

index 6a4b84babe498cc0a3acb5ab19283a3cf4514312..14c7f89b6ec0ed7819881b35e7c382cb7b1b1fe5 100644 (file)
@@ -5830,8 +5830,10 @@ void
 x_end_cr_clip (struct frame *f)
 {
   cairo_restore (FRAME_CR_CONTEXT (f));
+#ifdef HAVE_XDBE
   if (FRAME_X_DOUBLE_BUFFERED_P (f))
     x_mark_frame_dirty (f);
+#endif
 }
 
 void
@@ -20900,8 +20902,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                  x_flush (WINDOW_XFRAME (XWINDOW (bar->window)));
                }
 
+#ifdef HAVE_XDBE
              if (f && FRAME_X_DOUBLE_BUFFERED_P (f))
                x_drop_xrender_surfaces (f);
+#endif
 
              goto OTHER;
            }