From 15561035bef463102a06802eb144369e74290c8d Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Mon, 5 Oct 2020 20:53:05 +0900 Subject: [PATCH] e_hwc: add ecore event when hwc property is changed if hwc property is changed in callback of vconf, idle enterer callback is called late. Change-Id: Ie8890fd0d240eaa62054998593a01d662c0d17e3 --- src/bin/e_hwc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/e_hwc.c b/src/bin/e_hwc.c index b84501cf30..64ec273a28 100644 --- a/src/bin/e_hwc.c +++ b/src/bin/e_hwc.c @@ -21,6 +21,8 @@ E_API int E_EVENT_HWC_ACTIVE = -1; E_API int E_EVENT_HWC_DEACTIVE = -1; +static int E_EVENT_HWC_PROPERTY_CHANGED = -1; + static int _e_hwc_intercept_hooks_delete = 0; static int _e_hwc_intercept_hooks_walking = 0; @@ -335,6 +337,7 @@ e_hwc_init(void) { E_EVENT_HWC_ACTIVE = ecore_event_type_new(); E_EVENT_HWC_DEACTIVE = ecore_event_type_new(); + E_EVENT_HWC_PROPERTY_CHANGED = ecore_event_type_new(); return EINA_TRUE; } @@ -670,6 +673,8 @@ e_hwc_property_set(E_Hwc *hwc, unsigned int id, hwc_value value) hwc->property_changed = EINA_TRUE; + ecore_event_add(E_EVENT_HWC_PROPERTY_CHANGED, NULL, NULL, NULL); + EHINF("Set property id:%u value:%u", hwc, id, (unsigned int)value.u32); return EINA_TRUE; -- 2.34.1