summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-10-02 09:35:40 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-10-04 09:37:17 -0400
commita2e870870db3a2a216770e78f29341265199fefd (patch)
tree7bd39f3c33710553c1a37410937b6bc9067bd39a
parenta182619fd3f97e69443c80cf8896ee0a6b25b664 (diff)
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
-rw-r--r--src/bin/e_gadget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index fd230f92d..9ea924b10 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -1471,6 +1471,7 @@ E_API void
1471e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_obj) 1471e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_obj)
1472{ 1472{
1473 int x, y, w, h; 1473 int x, y, w, h;
1474 E_Layer layer;
1474 E_Gadget_Config *zgc; 1475 E_Gadget_Config *zgc;
1475 1476
1476 EINA_SAFETY_ON_NULL_RETURN(g); 1477 EINA_SAFETY_ON_NULL_RETURN(g);
@@ -1478,7 +1479,8 @@ e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_
1478 EINA_SAFETY_ON_NULL_RETURN(zgc); 1479 EINA_SAFETY_ON_NULL_RETURN(zgc);
1479 1480
1480 elm_ctxpopup_hover_parent_set(ctx, e_comp->elm); 1481 elm_ctxpopup_hover_parent_set(ctx, e_comp->elm);
1481 evas_object_layer_set(ctx, evas_object_layer_get(pos_obj ?: g)); 1482 layer = MAX(evas_object_layer_get(pos_obj ?: g), E_LAYER_POPUP);
1483 evas_object_layer_set(ctx, layer);
1482 1484
1483 evas_object_geometry_get(pos_obj ?: g, &x, &y, &w, &h); 1485 evas_object_geometry_get(pos_obj ?: g, &x, &y, &w, &h);
1484 if (zgc->site->anchor & E_GADGET_SITE_ANCHOR_TOP) 1486 if (zgc->site->anchor & E_GADGET_SITE_ANCHOR_TOP)