e_policy_visibility: allow parent window to uniconify when child's 77/243777/6 accepted/tizen/unified/20210331.063712 submit/tizen/20210330.233813
authorDuna Oh <duna.oh@samsung.com>
Thu, 10 Sep 2020 04:56:49 +0000 (13:56 +0900)
committerDuna Oh <duna.oh@samsung.com>
Tue, 30 Mar 2021 03:44:41 +0000 (03:44 +0000)
visibility is UNOBSCURED

When parent window is activated, parent should wait for the child to be
uniconify-rendered AND 'UNOBSCURED'.
This commit is to fix a visual defect that the parent window was uniconified
before the child and child was uniconified later.

Change-Id: I4fe0d5b4a6348c413467d8044e1cebf25becc640

src/bin/e_policy_visibility.c

index c9a2d45..27bcbbe 100644 (file)
@@ -2077,7 +2077,8 @@ _e_vis_intercept_show(void *data EINA_UNUSED, E_Client *ec)
                {
                   if (topmost->pixmap && e_pixmap_usable_get(topmost->pixmap))
                     {
-                       if (e_policy_visibility_client_is_uniconic(topmost))
+                       if ((e_policy_visibility_client_is_uniconic(topmost)) &&
+                           (topmost->visibility.obscured == E_VISIBILITY_UNOBSCURED))
                          {
                             ELOGF("COMP", "Already child(win:0x%08zx ec:%p) uniconify_render done..", ec, e_client_util_win_get(topmost), topmost);
                             return EINA_TRUE;