netstar pushed a commit to branch master.

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

commit c3a2a7f818380f9f91149ce2e93e35269f48ad25
Author: Alastair Poole <nets...@gmail.com>
Date:   Mon Jan 25 08:19:17 2021 +0000

    ibox: Handle preview when shaded.
    
    The user is minimizing a shaded window. We have the border pixel
    data. For now, give the object a "sensible" shaded set of
    dimensions.
---
 src/modules/ibox/e_mod_main.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/modules/ibox/e_mod_main.c b/src/modules/ibox/e_mod_main.c
index 7a7525dc2..d0a43dd59 100644
--- a/src/modules/ibox/e_mod_main.c
+++ b/src/modules/ibox/e_mod_main.c
@@ -601,6 +601,7 @@ _ibox_icon_fill_preview(IBox_Icon *ic, Eina_Bool is_retry)
 {
    E_Client *ec;
    Evas_Object *img, *img2;
+   int w, h;
 
    ec = ic->client;
 
@@ -610,15 +611,19 @@ _ibox_icon_fill_preview(IBox_Icon *ic, Eina_Bool is_retry)
         ecore_timer_add(0.5, _ibox_icon_fill_timer, ic);
         return;
      }
-   evas_object_size_hint_aspect_set(img, EVAS_ASPECT_CONTROL_BOTH, 
ec->client.w, ec->client.h);
-   evas_object_size_hint_max_set(img, ec->client.w, ec->client.h);
+   w = ec->client.w;
+   h = ec->client.h;
+   if (ec->shaded)
+     evas_object_geometry_get(ec->frame_object, NULL, NULL, &w, &h);
+   evas_object_size_hint_aspect_set(img, EVAS_ASPECT_CONTROL_BOTH, w, h);
+   evas_object_size_hint_max_set(img, w, h);
    ic->o_icon = img;
    edje_object_part_swallow(ic->o_holder, "e.swallow.preview", ic->o_icon);
    evas_object_pass_events_set(ic->o_icon, 1);
    evas_object_show(ic->o_icon);
 
    img2 = e_comp_object_util_frame_mirror_add(ec->frame);
-   evas_object_size_hint_aspect_set(img2, EVAS_ASPECT_CONTROL_BOTH, 
ec->client.w, ec->client.h);
+   evas_object_size_hint_aspect_set(img2, EVAS_ASPECT_CONTROL_BOTH, w, h);
    ic->o_icon2 = img2;
    edje_object_part_swallow(ic->o_holder2, "e.swallow.preview", ic->o_icon2);
    evas_object_pass_events_set(ic->o_icon2, 1);

-- 


Reply via email to