e_policy_wl: Add new aux hint for set visibility.ignore_geometry 24/284724/1 accepted/tizen/unified/20221128.014952
authorJunseok Kim <juns.kim@samsung.com>
Thu, 27 Oct 2022 08:49:24 +0000 (17:49 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 24 Nov 2022 07:53:07 +0000 (16:53 +0900)
Added new aux hint for set visibility.ignore_geometry property of the target client.
hint: "wm.policy.win.visibility.ignore_geometry"
val: "1": set ignore_geometry / "0": unset ignore_geometry

Change-Id: Id912cc1bf2309dabfe77cd1a9c9bb2000c01cb77

src/bin/e_policy_wl.c

index 6ca3e18..8d19bda 100644 (file)
@@ -278,6 +278,7 @@ enum _E_Policy_Hint_Type
    E_POLICY_HINT_RESIZE_ASPECT_RATIO = 14,
    E_POLICY_HINT_RESIZE_HEADER_HEIGHT = 15,
    E_POLICY_HINT_RESIZE_FOOTER_HEIGHT = 16,
+   E_POLICY_HINT_VISIBILITY_IGNORE_GEOMETRY= 17,
 };
 
 static const char *hint_names[] =
@@ -299,6 +300,7 @@ static const char *hint_names[] =
    "wm.policy.win.resize_aspect_ratio",
    "wm.policy.win.resize.header_height",
    "wm.policy.win.resize.footer_height",
+   "wm.policy.win.visibility.ignore_geometry",
 };
 
 static void                _e_policy_wl_surf_del(E_Policy_Wl_Surface *psurf);
@@ -2581,6 +2583,19 @@ _e_policy_wl_aux_hint_apply(E_Client *ec)
                   ec->manage_resize.footer_h = 0;
                }
           }
+        else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_VISIBILITY_IGNORE_GEOMETRY], strlen(hint->hint)))
+          {
+             if (!strncmp(hint->val, "1", 1))
+               {
+                  ELOGF("POL_VIS", "Set ignore_geometry.. value(%s)", ec, hint->val);
+                  ec->visibility.ignore_geometry = EINA_TRUE;
+               }
+             else
+               {
+                  ELOGF("POL_VIS", "UNSet ignore_geometry.. value(%s)", ec, hint->val);
+                  ec->visibility.ignore_geometry = EINA_FALSE;
+               }
+          }
      }
 
    e_policy_hook_call(E_POLICY_HOOK_CLIENT_AUX_HINT_CHANGED, ec);