forked from enlightenment/enlightenment
allow shadows on borderless, non-argb, non-shaped clients
T885
This commit is contained in:
parent
ca760bb103
commit
cd37f23632
|
@ -211,11 +211,13 @@ _e_comp_object_layers_remove(E_Comp_Object *cw)
|
||||||
static void
|
static void
|
||||||
_e_comp_object_shadow(E_Comp_Object *cw)
|
_e_comp_object_shadow(E_Comp_Object *cw)
|
||||||
{
|
{
|
||||||
if (!cw->frame_object) return;
|
|
||||||
if (e_util_client_shadow_state_get(cw->ec))
|
if (e_util_client_shadow_state_get(cw->ec))
|
||||||
edje_object_signal_emit(cw->frame_object, "e,state,shadow,on", "e");
|
{
|
||||||
|
edje_object_signal_emit(cw->frame_object ?: cw->shobj, "e,state,shadow,on", "e");
|
||||||
|
edje_object_signal_emit(cw->shobj, "e,state,shadow,off", "e");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
edje_object_signal_emit(cw->frame_object, "e,state,shadow,off", "e");
|
edje_object_signal_emit(cw->frame_object ?: cw->shobj, "e,state,shadow,off", "e");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -1613,10 +1613,9 @@ EAPI Eina_Bool
|
||||||
e_util_client_shadow_state_get(const E_Client *ec)
|
e_util_client_shadow_state_get(const E_Client *ec)
|
||||||
{
|
{
|
||||||
Eina_Bool on;
|
Eina_Bool on;
|
||||||
|
if (ec->argb || ec->shaped) return EINA_FALSE;
|
||||||
on = !ec->e.state.video;
|
on = !ec->e.state.video;
|
||||||
if (on)
|
if (on)
|
||||||
on = !ec->fullscreen;
|
on = !ec->fullscreen;
|
||||||
if (on)
|
|
||||||
on = !!e_util_strcmp(ec->border.name, "borderless");
|
|
||||||
return on;
|
return on;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue