iconify: fixed bug for iconifying window. 85/78585/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 6 Jul 2016 07:15:32 +0000 (16:15 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 6 Jul 2016 07:15:32 +0000 (16:15 +0900)
- there was a bug that the window was not launched if the angle was changed when it was on background

Change-Id: I657fc06389fddc128a0f4b9ee673c823f7b638a5

src/e_mod_main.c

index 65301f7..96ca829 100644 (file)
@@ -628,9 +628,11 @@ _pol_cb_hook_client_visibility(void *d EINA_UNUSED, E_Client *ec)
      }
    else
      {
-        if (ec->visibility.obscured == E_VISIBILITY_FULLY_OBSCURED)
+        if ((ec->visibility.obscured == E_VISIBILITY_FULLY_OBSCURED) &&
+            (ec->zone->display_state == E_ZONE_DISPLAY_STATE_ON))
           {
              Eina_Bool obscured_by_alpha_opaque = EINA_FALSE;
+             Eina_Bool find_above = EINA_FALSE;
              E_Client *above_ec;
              Evas_Object *o;
 
@@ -648,9 +650,11 @@ _pol_cb_hook_client_visibility(void *d EINA_UNUSED, E_Client *ec)
                        if (above_ec->argb && (above_ec->visibility.opaque > 0))
                          obscured_by_alpha_opaque = EINA_TRUE;
                     }
+                  find_above = EINA_TRUE;
                   break;
                }
 
+             if (!find_above) return;
              if (obscured_by_alpha_opaque)
                {
                   e_mod_pol_client_uniconify_by_visibility(ec);