Never set opaque region without an alpha channel

* src/xfns.c (x_set_alpha_background): Don't modify opaque
region if the visual has no alpha channel.
This commit is contained in:
Po Lu 2022-02-12 09:20:53 +08:00
parent 3fb68b3d25
commit f622034fa5

View file

@ -746,6 +746,9 @@ x_set_alpha_background (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
f->alpha_background != 1.0);
#endif
if (!FRAME_DISPLAY_INFO (f)->alpha_bits)
return;
if (f->alpha_background != 1.0)
{
XChangeProperty (FRAME_X_DISPLAY (f),