diff options
author | Po Lu <luangruo@yahoo.com> | 2022-01-30 08:51:13 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-01-30 08:51:13 +0800 |
commit | 391c1289e28ce11d5639a4d754ec36e7b26aa6ac (patch) | |
tree | d3950c55c5532f208e360af9bd61cb063103a13b /src/gtkutil.c | |
parent | b944841173f12134e4c68d269d5b82b1820b2a40 (diff) | |
download | emacs-391c1289e28ce11d5639a4d754ec36e7b26aa6ac.tar.gz |
Some adjustments to last change
* src/gtkutil.c (xg_set_undecorated): Only set ARGB visual on
Cairo builds wtihout PGTK.
* src/xfns.c (select_visual): Likewise.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r-- | src/gtkutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 8b8123c807e..067df216a4a 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1593,12 +1593,14 @@ xg_create_frame_widgets (struct frame *f) GdkScreen *screen = gtk_widget_get_screen (wtop); +#if !defined HAVE_PGTK && defined USE_CAIRO if (FRAME_DISPLAY_INFO (f)->n_planes == 32) { GdkVisual *visual = gdk_screen_get_rgba_visual (screen); gtk_widget_set_visual (wtop, visual); gtk_widget_set_visual (wfixed, visual); } +#endif #ifndef HAVE_PGTK /* Must realize the windows so the X window gets created. It is used |