From: Po Lu Date: Tue, 10 May 2022 06:40:26 +0000 (+0800) Subject: Handle deletion of opacity property too X-Git-Tag: emacs-29.0.90~1910^2~851 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88545428f0962081e776d903e05dd787677b320a;p=emacs.git Handle deletion of opacity property too * src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter when opacity prop is gone or invalid. --- diff --git a/src/xterm.c b/src/xterm.c index 5818eb1d02e..c22a901ff4c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -14856,6 +14856,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, { f->alpha[0] = 1.0; f->alpha[1] = 1.0; + + store_frame_param (f, Qalpha, Qnil); } else { @@ -14878,6 +14880,13 @@ handle_one_xevent (struct x_display_info *dpyinfo, store_frame_param (f, Qalpha, make_float (f->alpha[0])); } + else + { + f->alpha[0] = 1.0; + f->alpha[1] = 1.0; + + store_frame_param (f, Qalpha, Qnil); + } } if (tmp_data)