use ecore_x_netwm_opacity_get() for x11 opacity checking

this makes the check for opacity more accurate since it returns a bool
This commit is contained in:
Mike Blumenkrantz 2017-07-28 13:49:31 -04:00
parent efcb9a308d
commit 7375a4beef
1 changed files with 2 additions and 2 deletions

View File

@ -3920,15 +3920,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)
{