e_client: check mapped condition before calling evas_object_show in e_client_uniconify 07/187307/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 20 Aug 2018 09:59:04 +0000 (18:59 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 22 Aug 2018 01:49:09 +0000 (10:49 +0900)
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 4104be5f3c3e9c45523fd163eba513725b33a69e..5cc16387620944becd63181f51133ce0fa63a6eb 100644 (file)
@@ -5495,7 +5495,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);
 
@@ -5529,8 +5528,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);