diff options
| author | Po Lu | 2022-01-31 10:30:24 +0800 |
|---|---|---|
| committer | Po Lu | 2022-01-31 10:30:24 +0800 |
| commit | 0a34aeee7e0fbc30a40ecd4191aba0b70e13cf8a (patch) | |
| tree | 0aa115b7c1d64d7771f2cfe7942af81310a189cc | |
| parent | 1555453694d9c2861c447b2f030b125f60e48297 (diff) | |
| download | emacs-0a34aeee7e0fbc30a40ecd4191aba0b70e13cf8a.tar.gz emacs-0a34aeee7e0fbc30a40ecd4191aba0b70e13cf8a.zip | |
Fix builds without GTK
* src/xfns.c (x_set_alpha_background): Don't call
gtk_widget_set_app_paintable without GTK.
| -rw-r--r-- | src/xfns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index c0198fdc9d1..ed56b072148 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) | |||
| 732 | { | 732 | { |
| 733 | gui_set_alpha_background (f, arg, oldval); | 733 | gui_set_alpha_background (f, arg, oldval); |
| 734 | 734 | ||
| 735 | #ifdef USE_GTK | ||
| 735 | /* This prevents GTK from painting the window's background, which | 736 | /* This prevents GTK from painting the window's background, which |
| 736 | interferes with transparent background in some environments */ | 737 | interferes with transparent background in some environments */ |
| 737 | gtk_widget_set_app_paintable (FRAME_GTK_OUTER_WIDGET (f), | 738 | gtk_widget_set_app_paintable (FRAME_GTK_OUTER_WIDGET (f), |
| 738 | f->alpha_background != 1.0); | 739 | f->alpha_background != 1.0); |
| 740 | #endif | ||
| 739 | 741 | ||
| 740 | if (f->alpha_background != 1.0) | 742 | if (f->alpha_background != 1.0) |
| 741 | { | 743 | { |