e_policy: send visibility FULLY_OBSCURED when obscured by above alpha opaque window 80/299980/2
authorJunseok Kim <juns.kim@samsung.com>
Wed, 11 Jan 2023 04:08:52 +0000 (13:08 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Fri, 13 Oct 2023 06:21:03 +0000 (06:21 +0000)
Change-Id: I8b7cf502bdd0acaba634abd5d86a46f3b063b870

src/bin/e_policy.c

index 15934af..63967af 100644 (file)
@@ -853,21 +853,21 @@ _e_policy_cb_hook_client_visibility(void *d EINA_UNUSED, E_Client *ec)
                     }
 
                   if (!find_above) return;
+                  if (ec->visibility.last_sent_type == E_VISIBILITY_PRE_UNOBSCURED)
+                     {
+                        if (!e_policy_visibility_client_is_uniconify_render_running(ec))
+                        {
+                           ELOGF("POL_VIS", "SEND unobscured/fully-obscured visibility event because iconify visibility", ec);
+                           e_policy_wl_visibility_send(ec, E_VISIBILITY_UNOBSCURED);
+                           e_policy_wl_visibility_send(ec, E_VISIBILITY_FULLY_OBSCURED);
+                        }
+                     }
                   if (obscured_by_alpha_opaque)
                     {
                        e_policy_client_uniconify_by_visibility(ec);
                     }
                   else
                     {
-                       if (ec->visibility.last_sent_type == E_VISIBILITY_PRE_UNOBSCURED)
-                         {
-                            if (!e_policy_visibility_client_is_uniconify_render_running(ec))
-                              {
-                                 ELOGF("POL_VIS", "SEND unobscured/fully-obscured visibility event because iconify visibility", ec);
-                                 e_policy_wl_visibility_send(ec, E_VISIBILITY_UNOBSCURED);
-                                 e_policy_wl_visibility_send(ec, E_VISIBILITY_FULLY_OBSCURED);
-                              }
-                         }
                        e_policy_client_iconify_by_visibility(ec);
                     }
                }