e_policy_visibility: changes on e_vis_ec_below_uniconify() 08/206808/4
authorJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 27 May 2019 09:47:51 +0000 (18:47 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 10 Jun 2019 02:54:02 +0000 (02:54 +0000)
if the ec is not fullfilling the screen, no needs to wait
below clients' uniconify

Change-Id: If9a81f09ab18a7496b7502b68918fad02ede949f

src/bin/e_policy_visibility.c

index 1f3e273de5bf09630e51b720ab0397fd60085932..c34103a534ef3d3af433893c2e4cf1eaffa9b7ef 100644 (file)
@@ -1671,6 +1671,7 @@ _e_vis_ec_below_uniconify(E_Client *ec, E_Pol_Vis_Type above_vis_type)
    Eina_Bool ret = EINA_FALSE;
    E_Vis_Client *below;
    Eina_Bool send_vis;
+   int x, y, w, h;
 
    if (!ec) return EINA_FALSE;
 
@@ -1680,6 +1681,11 @@ _e_vis_ec_below_uniconify(E_Client *ec, E_Pol_Vis_Type above_vis_type)
           return EINA_FALSE;
      }
 
+   /* if the ec is not fullfilling the screen, no needs to wait below clients' uniconify */
+   e_client_geometry_get(ec, &x, &y, &w, &h);
+   if (!E_CONTAINS(x, y, w, h, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h))
+     return EINA_FALSE;
+
    /* find below activity clients */
    _e_vis_ec_below_activity_clients_get(ec, &below_list);
    if (!below_list)