From: Junseok Kim Date: Tue, 16 Jul 2024 05:43:48 +0000 (+0900) Subject: e_appinfo: Add function for unset base_output_resolution X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6738a60bdd5146d7e2f26d98e9ff117d60f6e653;p=platform%2Fupstream%2Fenlightenment.git e_appinfo: Add function for unset base_output_resolution Add function for unset base_output_resolution and call it on e_test_helper NOTE: In general, output resolution is not changed at runtime, so, it should be used only for debugging. Change-Id: Id4c86eded4452216437057c58a7a32956121201c --- diff --git a/src/bin/debug/e_test_helper.c b/src/bin/debug/e_test_helper.c index a4c4ef1..b2d3751 100644 --- a/src/bin/debug/e_test_helper.c +++ b/src/bin/debug/e_test_helper.c @@ -1679,7 +1679,7 @@ _e_test_helper_cb_set_base_output_resolution(const Eldbus_Service_Interface *ifa } else { - e_appinfo_base_output_resolution_set(eai, 0, 0); + e_appinfo_base_output_resolution_unset(eai); ELOGF("TEST", "unset base output resolution of eai(pid:%d): %p", NULL, pid, eai); } diff --git a/src/bin/windowmgr/e_appinfo.c b/src/bin/windowmgr/e_appinfo.c index 70fcc1f..f09867a 100644 --- a/src/bin/windowmgr/e_appinfo.c +++ b/src/bin/windowmgr/e_appinfo.c @@ -314,6 +314,18 @@ e_appinfo_base_output_resolution_set(E_Appinfo *eai, int width, int height) return EINA_TRUE; } +EINTERN Eina_Bool +e_appinfo_base_output_resolution_unset(E_Appinfo *eai) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(eai, EINA_FALSE); + + eai->base_output_available = EINA_FALSE; + + ELOGF("POL_APPINFO", "appinfo(%p) unset base_output_resolution:(pid,%u)", NULL, eai, eai->pid); + + return EINA_TRUE; +} + E_API Eina_Stringshare * e_appinfo_appid_get(E_Appinfo *eai) { diff --git a/src/bin/windowmgr/e_appinfo_intern.h b/src/bin/windowmgr/e_appinfo_intern.h index 9f754a3..56cb253 100644 --- a/src/bin/windowmgr/e_appinfo_intern.h +++ b/src/bin/windowmgr/e_appinfo_intern.h @@ -30,6 +30,7 @@ EINTERN E_Appinfo_Owner e_appinfo_owner_get(E_Appinfo *eai); EINTERN void e_appinfo_owner_set(E_Appinfo *eai, E_Appinfo_Owner owner); EINTERN Eina_Bool e_appinfo_auto_placement_get(E_Appinfo *eai); EINTERN void e_appinfo_auto_placement_set(E_Appinfo *eai, Eina_Bool set); +EINTERN Eina_Bool e_appinfo_base_output_resolution_unset(E_Appinfo *eai); #endif