e_client: check mapped condition before calling evas_object_show in e_client_uniconify 76/187176/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 20 Aug 2018 09:59:04 +0000 (18:59 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 20 Aug 2018 11:19:33 +0000 (11:19 +0000)
The window which had unmapped and iconified by client didn't show when it called show at the first time.
We fixed this problem.

Also, this patch can resolve a bug resolved by below patch.
  - e_client: check mapped condition when e_client_uniconify
  - commit id: 632261617acada66b019931de981eed332f50f04

Change-Id: Ibc5b84ee047002e5d6ee9bfd7c4a4284ffab8174

src/bin/e_client.c

index 4dc562898e2da08c4412fc8a259e5709ba70dd37..f4bc29a19e8b0420b62092680d77ac1761e3c7a9 100644 (file)
@@ -5485,7 +5485,6 @@ e_client_uniconify(E_Client *ec)
 
    if (!ec->zone) return;
    if (ec->shading || (!ec->iconic)) return;
-   if ((!ec->comp_data) || (!ec->comp_data->mapped)) return;
 
    TRACE_DS_BEGIN(CLIENT:UNICONIFY);
 
@@ -5519,8 +5518,15 @@ e_client_uniconify(E_Client *ec)
 
    if (ec->pixmap && e_pixmap_usable_get(ec->pixmap))
      {
-        ELOGF("TZVIS", "UNICONIFY|object show", ec->pixmap, ec);
-        evas_object_show(ec->frame);
+        if (ec->comp_data && ec->comp_data->mapped)
+          {
+             ELOGF("TZVIS", "UNICONIFY|object show", ec->pixmap, ec);
+             evas_object_show(ec->frame);
+          }
+        else
+          {
+             ELOGF("TZVIS", "UNICONIFY|object no show. currently unmapped", ec->pixmap, ec);
+          }
      }
 
    e_client_comp_hidden_set(ec, 0);