emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0a34aeee7e: Fix builds without GTK


From: Po Lu
Subject: master 0a34aeee7e: Fix builds without GTK
Date: Sun, 30 Jan 2022 21:31:02 -0500 (EST)

branch: master
commit 0a34aeee7e0fbc30a40ecd4191aba0b70e13cf8a
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix builds without GTK
    
    * src/xfns.c (x_set_alpha_background): Don't call
    gtk_widget_set_app_paintable without GTK.
---
 src/xfns.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xfns.c b/src/xfns.c
index c0198fdc9d..ed56b07214 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -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)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]