summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-09-30 12:59:10 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-10-04 09:37:16 -0400
commited3d1e70f20dd5f892e3d85b70e8ea44161165d4 (patch)
tree5d355778418e1ba9a5533e050a615eb0a426fff0
parent2ef318db8bd846f1bc30d80300768c26b61f8980 (diff)
force shape queue when gadget util ctxpopups change visibility
fixes some input region issues in x11
-rw-r--r--src/bin/e_gadget.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index 6c26583b5..fd230f92d 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -1461,6 +1461,12 @@ e_gadget_util_layout_style_init(Evas_Object *g, Evas_Object *style)
1461 return prev; 1461 return prev;
1462} 1462}
1463 1463
1464static void
1465_gadget_util_ctxpopup_visibility(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
1466{
1467 e_comp_shape_queue();
1468}
1469
1464E_API void 1470E_API void
1465e_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)
1466{ 1472{
@@ -1490,7 +1496,11 @@ e_gadget_util_ctxpopup_place(Evas_Object *g, Evas_Object *ctx, Evas_Object *pos_
1490 elm_ctxpopup_direction_priority_set(ctx, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, 0, 0); 1496 elm_ctxpopup_direction_priority_set(ctx, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, 0, 0);
1491 } 1497 }
1492 evas_object_move(ctx, x, y); 1498 evas_object_move(ctx, x, y);
1499 evas_object_event_callback_add(ctx, EVAS_CALLBACK_SHOW, _gadget_util_ctxpopup_visibility, NULL);
1500 evas_object_event_callback_add(ctx, EVAS_CALLBACK_HIDE, _gadget_util_ctxpopup_visibility, NULL);
1493 evas_object_smart_callback_call(zgc->site->layout, "gadget_site_popup", ctx); 1501 evas_object_smart_callback_call(zgc->site->layout, "gadget_site_popup", ctx);
1502 if (evas_object_visible_get(ctx))
1503 e_comp_shape_queue();
1494} 1504}
1495 1505
1496static void 1506static void