This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository engage.

View the commit online.

commit 73d968eb27b2f1bff010a9615732fa42e8949116
Author: Alastair Poole <[email protected]>
AuthorDate: Sun Nov 29 12:16:47 2026 +0000

    improve auto-hide behaviour
---
 README.md     |  4 ++--
 engage_dock.c | 27 +++++++++++++++++++++++----
 2 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 4a64433..a4cafb9 100644
--- a/README.md
+++ b/README.md
@@ -27,8 +27,8 @@ Enable **Engage** in Enlightenment’s **Settings → Modules**. Right-click the
 ## Auto-hide
 
 Open **Engage Settings** and enable **Automatically hide the dock**. The dock
-slides off its configured screen edge when the pointer leaves. Move the pointer
-to that edge where the dock normally sits to bring it back.
+slides toward its configured screen edge when the pointer leaves, leaving a
+thin strip visible. Hover over the strip to bring the dock back.
 
 ## App icon badges
 
diff --git a/engage_dock.c b/engage_dock.c
index 3cac9e5..58578ca 100644
--- a/engage_dock.c
+++ b/engage_dock.c
@@ -30,6 +30,7 @@ typedef struct
    E_Zone *zone;
    Evas_Object *box;
    Evas_Object *panel;
+   Evas_Object *input;
    Evas_Object *zone_clip;
    E_Zone_Obstacle *obstacle;
    Evas_Object *pressed;
@@ -588,12 +589,20 @@ dock_layout(Evas_Object *box, Evas_Object_Box_Data *layout, void *data)
      {
         dock->content_bounds = EINA_RECT(0, 0, 0, 0);
         if (dock->panel) evas_object_hide(dock->panel);
+        if (dock->input) evas_object_hide(dock->input);
         return;
      }
 
    separator_start = 0;
    length = dock->vertical ? h : w;
 
+   if (dock->input)
+     {
+        evas_object_move(dock->input, x, y);
+        evas_object_resize(dock->input, w, h);
+        evas_object_show(dock->input);
+     }
+
    if (dock->panel)
      {
         evas_object_move(dock->panel, x, y);
@@ -1485,14 +1494,15 @@ dock_position_apply(Engage_Dock *dock)
 {
    Eina_Rectangle geometry = dock->dock_geometry;
    int thickness = dock->vertical ? geometry.w : geometry.h;
-   int offset;
+   int offset, hover_strip = MAX(1, lround(2 * e_scale));
 
-   offset = lround((thickness + dock_shadow_depth(dock)) *
+   offset = lround(MAX(0, thickness + dock_shadow_depth(dock) - hover_strip) *
                    ecore_animator_pos_map(dock->hide_progress, ECORE_POS_MAP_SINUSOIDAL, 0, 0));
    if (dock_at_start_edge(dock)) offset = -offset;
    evas_object_move(dock->box, geometry.x + (dock->vertical ? offset : 0),
                     geometry.y + (dock->vertical ? 0 : offset));
    evas_object_smart_changed(dock->box);
+   e_comp_shape_queue();
 }
 
 static Eina_Bool
@@ -1554,7 +1564,7 @@ dock_pointer_near(const Engage_Dock *dock)
 
         evas_object_geometry_get(dock->box, &current.x, &current.y, &current.w, &current.h);
         cross = dock->vertical ? current.x - geometry.x : current.y - geometry.y;
-        edge = MAX(edge - abs(cross), MAX(1, lround(2 * e_scale)));
+        edge -= abs(cross);
      }
    return distance < edge;
 }
@@ -2001,7 +2011,7 @@ engage_dock_zone_set(E_Zone *zone)
    dock->zone = zone;
    e_object_ref(E_OBJECT(zone));
    dock->height = engage_config_dock_height_get();
-   evas_object_layer_set(dock->box, E_LAYER_CLIENT_ABOVE);
+   evas_object_layer_set(dock->box, E_LAYER_CLIENT_EDGE_FULLSCREEN);
    dock->panel = engage_theme_object_add(e_comp->evas, "dock/panel");
    if (dock->panel)
      {
@@ -2009,6 +2019,13 @@ engage_dock_zone_set(E_Zone *zone)
         evas_object_smart_member_add(dock->panel, dock->box);
         evas_object_lower(dock->panel);
      }
+   dock->input = evas_object_rectangle_add(e_comp->evas);
+   if (dock->input)
+     {
+        evas_object_color_set(dock->input, 0, 0, 0, 0);
+        evas_object_smart_member_add(dock->input, dock->box);
+        evas_object_lower(dock->input);
+     }
    dock->window_drop = e_drop_handler_add(E_OBJECT(e_comp), NULL, dock,
                                           NULL, NULL, NULL, window_drop,
                                           types, EINA_C_ARRAY_LENGTH(types), 0, 0, 0, 0);
@@ -2037,7 +2054,9 @@ engage_dock_destroy(void)
    divider_cursor_set(dock, EINA_FALSE);
    dock_tiles_clear(dock);
    if (dock->panel) evas_object_del(dock->panel);
+   if (dock->input) evas_object_del(dock->input);
    evas_object_del(dock->box);
+   e_comp_shape_queue();
    if (dock->obstacle) e_object_del(E_OBJECT(dock->obstacle));
    e_object_unref(E_OBJECT(dock->zone));
    free(dock);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to