client shadow check with argb windows now returns based on frame state

T929
This commit is contained in:
Mike Blumenkrantz 2014-02-10 09:11:40 -05:00
parent c91840ea54
commit e105c10d80
1 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,11 @@ static inline Eina_Bool
e_client_util_shadow_state_get(const E_Client *ec)
{
Eina_Bool on;
if (ec->argb || ec->shaped) return EINA_FALSE;
if (ec->shaped) return EINA_FALSE;
if (ec->argb)
{
return (!ec->borderless) && (ec->bordername || (ec->border.name && strcmp(ec->border.name, "borderless")));
}
on = !ec->e.state.video;
if (on)
on = !ec->fullscreen;