]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle deletion of opacity property too
authorPo Lu <luangruo@yahoo.com>
Tue, 10 May 2022 06:40:26 +0000 (14:40 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 10 May 2022 06:40:26 +0000 (14:40 +0800)
* src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter
when opacity prop is gone or invalid.

src/xterm.c

index 5818eb1d02e3ba08780419fb722dbd93d4fe1234..c22a901ff4c0ac5483a4e3c728255f178d4ee2a7 100644 (file)
@@ -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)