netstar pushed a commit to branch master.

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

commit caa18034abd4edbdd6944773d8c92cbb35b450ef
Author: Alastair Poole <nets...@gmail.com>
Date:   Wed Aug 26 13:08:35 2020 +0100

    pager: ensure this works with legacy themes.
---
 src/modules/pager/e_mod_main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c
index e13733354..81f051269 100644
--- a/src/modules/pager/e_mod_main.c
+++ b/src/modules/pager/e_mod_main.c
@@ -55,6 +55,7 @@ struct _Pager
    E_Client       *active_drag_client;
    Ecore_Job      *recalc;
    Eina_Bool       invert E_BITFIELD;
+   Eina_Bool       noshelf E_BITFIELD;
 };
 
 struct _Pager_Desk
@@ -270,7 +271,9 @@ _aspect(E_Gadcon_Client *gcc)
    double aspect_ratio;
 
    inst = gcc->data;
-   if (inst->pager->invert)
+   if (inst->pager->noshelf)
+     evas_object_geometry_get(inst->pager->o_table, NULL, NULL, &aspect_w, 
&aspect_h);
+   else if (inst->pager->invert)
      {
         aspect_w = inst->pager->ynum * inst->pager->zone->w;
         aspect_h = inst->pager->xnum * inst->pager->zone->h;
@@ -333,7 +336,6 @@ _pager_recalc(void *data)
    Evas_Coord mw = 0, mh = 0;
    int w, h, zw, zh, w2, h2;
    E_Gadcon_Orient orient;
-   Eina_Bool shelf = 1;
 
    if (!p->inst || !p->inst->gcc || !p->inst->gcc->gadcon) return;
 
@@ -348,14 +350,12 @@ _pager_recalc(void *data)
         case E_GADCON_ORIENT_FLOAT:
         case E_GADCON_ORIENT_VERT:
         case E_GADCON_ORIENT_HORIZ:
-          shelf = 0;
+          p->noshelf = 1;
           break;
         default:
           break;
      }
 
-   if (!shelf) return;
-
    edje_object_size_min_calc(pd->o_desk, &mw, &mh);
    evas_object_geometry_get(pd->o_desk, NULL, NULL, &w, &h);
    w -= mw; h -= mh;

-- 


Reply via email to