e_hwc: add ecore event when hwc property is changed 17/245217/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 5 Oct 2020 11:53:05 +0000 (20:53 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 6 Oct 2020 02:55:08 +0000 (11:55 +0900)
if hwc property is changed in callback of vconf,
idle enterer callback is called late.

Change-Id: Ie8890fd0d240eaa62054998593a01d662c0d17e3

src/bin/e_hwc.c

index b84501cf309da8665762119b0ad265ec1b5ad365..64ec273a285a4f0af9a2bed57fd7ed7304559fb0 100644 (file)
@@ -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;