forked from enlightenment/enlightenment
clamp gadget util ctxpopups to E_LAYER_POPUP at the lowest
avoid having these be obscured by windows when the gadget is on a lower layer
This commit is contained in:
parent
a182619fd3
commit
a2e870870d
|
@ -1471,6 +1471,7 @@ E_API void
|
||||||
e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_obj)
|
e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_obj)
|
||||||
{
|
{
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
|
E_Layer layer;
|
||||||
E_Gadget_Config *zgc;
|
E_Gadget_Config *zgc;
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(g);
|
EINA_SAFETY_ON_NULL_RETURN(g);
|
||||||
|
@ -1478,7 +1479,8 @@ e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_
|
||||||
EINA_SAFETY_ON_NULL_RETURN(zgc);
|
EINA_SAFETY_ON_NULL_RETURN(zgc);
|
||||||
|
|
||||||
elm_ctxpopup_hover_parent_set(ctx, e_comp->elm);
|
elm_ctxpopup_hover_parent_set(ctx, e_comp->elm);
|
||||||
evas_object_layer_set(ctx, evas_object_layer_get(pos_obj ?: g));
|
layer = MAX(evas_object_layer_get(pos_obj ?: g), E_LAYER_POPUP);
|
||||||
|
evas_object_layer_set(ctx, layer);
|
||||||
|
|
||||||
evas_object_geometry_get(pos_obj ?: g, &x, &y, &w, &h);
|
evas_object_geometry_get(pos_obj ?: g, &x, &y, &w, &h);
|
||||||
if (zgc->site->anchor & E_GADGET_SITE_ANCHOR_TOP)
|
if (zgc->site->anchor & E_GADGET_SITE_ANCHOR_TOP)
|
||||||
|
|
Loading…
Reference in New Issue