From 88545428f0962081e776d903e05dd787677b320a Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 10 May 2022 14:40:26 +0800 Subject: [PATCH] Handle deletion of opacity property too * src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter when opacity prop is gone or invalid. --- src/xterm.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.39.2