e_policy: fix a bug that the window is iconified/uniconified repeatedly 92/111692/1 submit/tizen_3.0/20170123.105750
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 23 Jan 2017 11:33:15 +0000 (20:33 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 23 Jan 2017 11:33:18 +0000 (20:33 +0900)
the window placed out of screen was iconified and uniconified repeatedly
when an alpha opaque window was shown above it.

Change-Id: Ica60cef7729114eb4e85ada31fd0894b976caee8

src/bin/e_policy.c

index ba80772b75f47b1ae46e04780593cbdf6068693c..ff46c1cda8403d87d75cea7047aa09b661c1447f 100644 (file)
@@ -873,7 +873,10 @@ _e_policy_cb_hook_client_visibility(void *d EINA_UNUSED, E_Client *ec)
              if (ec->zone->display_state == E_ZONE_DISPLAY_STATE_ON)
                {
                   if (!E_CONTAINS(ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h, ec->x, ec->y, ec->w, ec->h))
-                    e_policy_client_iconify_by_visibility(ec);
+                    {
+                       e_policy_client_iconify_by_visibility(ec);
+                       return;
+                    }
 
                   for (o = evas_object_above_get(ec->frame); o; o = evas_object_above_get(o))
                     {