]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix builds without GTK
authorPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 02:30:24 +0000 (10:30 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 31 Jan 2022 02:30:24 +0000 (10:30 +0800)
* src/xfns.c (x_set_alpha_background): Don't call
gtk_widget_set_app_paintable without GTK.

src/xfns.c

index c0198fdc9d14d229aa531fcaec52cbf380655042..ed56b072148488640b37d503b634cb2da1e2dbd0 100644 (file)
@@ -732,10 +732,12 @@ x_set_alpha_background (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
 {
   gui_set_alpha_background (f, arg, oldval);
 
+#ifdef USE_GTK
   /* This prevents GTK from painting the window's background, which
      interferes with transparent background in some environments */
   gtk_widget_set_app_paintable (FRAME_GTK_OUTER_WIDGET (f),
                                f->alpha_background != 1.0);
+#endif
 
   if (f->alpha_background != 1.0)
     {