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 8e3a7b932686229d88b591fa65cc18d854d16e97
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Nov 24 21:59:11 2026 +0000

    dock: don't advertise as a gadget.
---
 README.md      |  6 ++++--
 e_mod_main.c   |  9 ++++++++-
 engage_dock.c  | 24 ------------------------
 engage_shelf.c | 14 ++++++++++++--
 4 files changed, 24 insertions(+), 29 deletions(-)

diff --git a/README.md b/README.md
index 0e0ba78..fb12100 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,12 @@
 # Engage
 
-Engage is an Enlightenment shelf gadget with reorderable app launchers and frozen previews of minimized windows.
+Engage is an Enlightenment dock with reorderable app icons and frozen previews of minimized windows.
 
 ![Engage dock mockup with application icons, running indicators, and minimized window previews](docs/engage-dock-mockup.png)
 
-Engage runs as a single dock at the bottom center of the primary active display. It follows the primary display when the display configuration changes. When upgrading an existing dock, Engage carries over its saved size and calculates its position from the primary display.
+Engage creates its own shelf at the bottom center of the primary active display. It uses Enlightenment’s default shelf style and compositor shadow. Engage is unavailable in Enlightenment’s desktop and shelf gadget pickers. It follows the primary display when the display configuration changes. When upgrading an existing dock, Engage carries over its saved size and calculates its position from the primary display.
+
+Drag pinned and running app icons to reorder them. Pinned launcher order is saved, and unpinned icons disappear when their apps close.
 
 Drag the divider horizontally to change the dock’s width and vertically to change its height. Drag diagonally to change both at once. The shelf grows with the dock, and both dimensions are saved.
 
diff --git a/e_mod_main.c b/e_mod_main.c
index b011ccf..cbd1741 100644
--- a/e_mod_main.c
+++ b/e_mod_main.c
@@ -235,13 +235,20 @@ gadget_id(const E_Gadcon_Client_Class *klass)
    return id;
 }
 
+static Eina_Bool
+gadget_is_site(E_Gadcon_Site site EINA_UNUSED)
+{
+   /* Engage adds its gadget directly to its dedicated shelf. */
+   return EINA_FALSE;
+}
+
 static const E_Gadcon_Client_Class gadget_class =
 {
    GADCON_CLIENT_CLASS_VERSION,
    "engage",
    {
       engage_dock_create, engage_dock_destroy, engage_dock_orient, gadget_label, gadget_icon,
-      gadget_id, NULL, e_gadcon_site_is_shelf
+      gadget_id, NULL, gadget_is_site
    },
    E_GADCON_CLIENT_STYLE_PLAIN
 };
diff --git a/engage_dock.c b/engage_dock.c
index bcf2ad8..7ddca04 100644
--- a/engage_dock.c
+++ b/engage_dock.c
@@ -30,7 +30,6 @@ typedef struct
 {
    E_Gadcon_Client *gcc;
    Evas_Object *box;
-   Evas_Object *panel;
    Elm_Tooltip_Orient tooltip_orient;
    Evas_Object *pressed;
    Ecore_Animator *motion;
@@ -349,20 +348,12 @@ dock_layout(Evas_Object *box, Evas_Object_Box_Data *layout, void *data)
    if (!total)
      {
         dock->content_bounds = EINA_RECT(0, 0, 0, 0);
-        if (dock->panel) evas_object_hide(dock->panel);
         return;
      }
 
    int separator_start = 0;
    int length = dock->vertical ? h : w;
 
-   if (dock->panel)
-     {
-        evas_object_move(dock->panel, x, y);
-        evas_object_resize(dock->panel, w, h);
-        evas_object_show(dock->panel);
-     }
-
    int padding = MIN(dock_padding(), length / 4);
    length -= 2 * padding;
    if (dock->vertical)
@@ -1290,20 +1281,6 @@ engage_dock_create(E_Gadcon *gc, const char *name, const char *id, const char *s
      }
 
    dock->gcc->data = ""
-   dock->panel = edje_object_add(gc->evas);
-   if (dock->panel &&
-       !e_theme_edje_object_set(dock->panel, "base/theme/shelf", "e/shelf/default/base"))
-     {
-        evas_object_del(dock->panel);
-        dock->panel = NULL;
-     }
-   if (!dock->panel) dock->panel = engage_theme_object_add(gc->evas, "dock/panel");
-   if (dock->panel)
-     {
-        evas_object_pass_events_set(dock->panel, EINA_TRUE);
-        evas_object_smart_member_add(dock->panel, dock->box);
-        evas_object_lower(dock->panel);
-     }
    const char *types[] = { "enlightenment/border" };
    dock->window_drop = e_drop_handler_add(E_OBJECT(dock->gcc), NULL, dock,
                                           NULL, NULL, NULL, window_drop,
@@ -1337,7 +1314,6 @@ engage_dock_destroy(E_Gadcon_Client *gcc)
    if (dock->dragging || dock->resizing) e_gadcon_locked_set(gcc->gadcon, 0);
    divider_cursor_set(dock, EINA_FALSE);
    dock_tiles_clear(dock);
-   if (dock->panel) evas_object_del(dock->panel);
    evas_object_del(dock->box);
    free(dock);
 }
diff --git a/engage_shelf.c b/engage_shelf.c
index de18741..32a1654 100644
--- a/engage_shelf.c
+++ b/engage_shelf.c
@@ -141,7 +141,7 @@ shelf_create(E_Zone *zone)
    configured->zone = zone->num;
    configured->layer = E_LAYER_CLIENT_ABOVE;
    configured->orient = E_GADCON_ORIENT_BOTTOM;
-   configured->style = eina_stringshare_add("invisible");
+   configured->style = eina_stringshare_add("default");
    configured->fit_along = 1;
    configured->size = legacy_size ?: ENGAGE_SHELF_DEFAULT_HEIGHT;
    configured->overlap = 1;
@@ -238,7 +238,10 @@ shelf_startup(void *data EINA_UNUSED)
 
    E_Shelf *shelf = shelf_find(configured);
    if (shelf && shelf->cfg_delete) return;
-   if (shelf && shelf->zone != zone)
+   Eina_Bool restyle = !configured->style || strcmp(configured->style, "default") ||
+                       configured->layer != E_LAYER_CLIENT_ABOVE;
+   /* The shelf selects its compositor shadow when it is created. */
+   if (shelf && (shelf->zone != zone || restyle))
      {
         e_gadcon_unpopulate(shelf->gadcon);
         e_shelf_hide(shelf);
@@ -246,6 +249,13 @@ shelf_startup(void *data EINA_UNUSED)
         shelf = NULL;
      }
 
+   if (restyle)
+     {
+        eina_stringshare_replace(&configured->style, "default");
+        configured->layer = E_LAYER_CLIENT_ABOVE;
+        e_config_save_queue();
+     }
+
    if (configured->zone != (int)zone->num)
      {
         E_Config_Gadcon *gadcon;

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

Reply via email to