From: Junseok Kim Date: Thu, 27 Oct 2022 08:49:24 +0000 (+0900) Subject: e_policy_wl: Add new aux hint for set visibility.ignore_geometry X-Git-Tag: accepted/tizen/7.0/unified/20221129.172451~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc1d0df73f22e552b962021e4df6530ff4414663;p=platform%2Fupstream%2Fenlightenment.git e_policy_wl: Add new aux hint for set visibility.ignore_geometry 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 --- diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index 6ca3e180cd..8d19bda546 100644 --- a/src/bin/e_policy_wl.c +++ b/src/bin/e_policy_wl.c @@ -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);