From e7c4016a690470bce842203955b96cf761d2e3f0 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Fri, 21 Aug 2020 10:26:25 +0100 Subject: [PATCH] tasks: fallthrough popup location. This behaviour can be more intelligent, but for now it covers most cases. Yet to see tasks in use in the wild outside a shelf, though it can happen so should be giving something reasonable for this choice. --- src/modules/tasks/e_mod_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/tasks/e_mod_main.c b/src/modules/tasks/e_mod_main.c index a669d6021..7e666b5c5 100644 --- a/src/modules/tasks/e_mod_main.c +++ b/src/modules/tasks/e_mod_main.c @@ -947,6 +947,9 @@ _tasks_item_preview_add(Tasks_Item *item) ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_UP); break; default: + evas_object_move(o, ox + (ow / 2), oy); + elm_ctxpopup_direction_priority_set(o, ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_RIGHT); break; } evas_object_show(o);