discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=596e48d06617060b5decc335e69eacab13ddbe2d

commit 596e48d06617060b5decc335e69eacab13ddbe2d
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jul 28 13:49:31 2017 -0400

    use ecore_x_netwm_opacity_get() for x11 opacity checking
    
    this makes the check for opacity more accurate since it returns a bool
---
 src/bin/e_comp_x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 00b248cd1..4557f0a87 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -3913,15 +3913,15 @@ _e_comp_x_hook_client_fetch(void *d EINA_UNUSED, 
E_Client *ec)
      {
         unsigned int val;
 
-        if (ecore_x_window_prop_card32_get(win, 
ECORE_X_ATOM_NET_WM_WINDOW_OPACITY, &val, 1) > 0)
+        if (ecore_x_netwm_opacity_get(win, &val))
           {
-             val = (val >> 24);
              if (ec->netwm.opacity != val)
                {
                   ec->netwm.opacity = val;
                   rem_change = 1;
                }
           }
+        ec->netwm.fetch.opacity = 0;
      }
    if (ec->netwm.fetch.icon)
      {

-- 


Reply via email to