netstar pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e7c4016a690470bce842203955b96cf761d2e3f0

commit e7c4016a690470bce842203955b96cf761d2e3f0
Author: Alastair Poole <[email protected]>
Date:   Fri Aug 21 10:26:25 2020 +0100

    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);

-- 


Reply via email to