forked from enlightenment/enlightenment
move border shadow checks to e_util
This commit is contained in:
parent
f8a2dd4d95
commit
3a983e8d59
|
@ -4917,14 +4917,8 @@ _e_border_free(E_Border *bd)
|
||||||
static void
|
static void
|
||||||
_e_border_shadow(E_Border *bd)
|
_e_border_shadow(E_Border *bd)
|
||||||
{
|
{
|
||||||
Eina_Bool on = EINA_FALSE;
|
|
||||||
if (!bd->bg_object) return;
|
if (!bd->bg_object) return;
|
||||||
on = !bd->client.e.state.video;
|
if (e_util_border_shadow_state_get(bd))
|
||||||
if (on)
|
|
||||||
on = !bd->fullscreen;
|
|
||||||
if (on)
|
|
||||||
on = !!e_util_strcmp(bd->client.border.name, "borderless");
|
|
||||||
if (on)
|
|
||||||
edje_object_signal_emit(bd->bg_object, "e,state,shadow,on", "e");
|
edje_object_signal_emit(bd->bg_object, "e,state,shadow,on", "e");
|
||||||
else
|
else
|
||||||
edje_object_signal_emit(bd->bg_object, "e,state,shadow,off", "e");
|
edje_object_signal_emit(bd->bg_object, "e,state,shadow,off", "e");
|
||||||
|
|
|
@ -1720,3 +1720,15 @@ e_util_evas_objects_above_print_smart(Evas_Object *o)
|
||||||
fprintf(stderr, "[%p] - %s(%s) %s\n", a, evas_object_type_get(a), evas_object_name_get(a), evas_object_visible_get(a) ? "VISIBLE" : "HIDDEN");
|
fprintf(stderr, "[%p] - %s(%s) %s\n", a, evas_object_type_get(a), evas_object_name_get(a), evas_object_visible_get(a) ? "VISIBLE" : "HIDDEN");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
e_util_border_shadow_state_get(const E_Border *bd)
|
||||||
|
{
|
||||||
|
Eina_Bool on;
|
||||||
|
on = !bd->client.e.state.video;
|
||||||
|
if (on)
|
||||||
|
on = !bd->fullscreen;
|
||||||
|
if (on)
|
||||||
|
on = !!e_util_strcmp(bd->client.border.name, "borderless");
|
||||||
|
return on;
|
||||||
|
}
|
||||||
|
|
|
@ -73,6 +73,8 @@ EAPI char *e_util_string_append_quoted(char *str, size_t *size, size_t *len, con
|
||||||
EAPI void e_util_evas_objects_above_print(Evas_Object *o);
|
EAPI void e_util_evas_objects_above_print(Evas_Object *o);
|
||||||
EAPI void e_util_evas_objects_above_print_smart(Evas_Object *o);
|
EAPI void e_util_evas_objects_above_print_smart(Evas_Object *o);
|
||||||
|
|
||||||
|
EAPI Eina_Bool e_util_border_shadow_state_get(const E_Border *bd);
|
||||||
|
|
||||||
static inline E_Container *
|
static inline E_Container *
|
||||||
e_util_container_current_get(void)
|
e_util_container_current_get(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue