From d6af4e947d38972c7dabf1eea66b07a26c49a9d6 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Fri, 14 Jul 2023 10:21:25 +0900 Subject: [PATCH] increase the wait_for_done event count (3->5) Change-Id: I0e0ed21a634300974a7dad0d819bec2af40e39c2 --- src/efl_util.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/efl_util.c b/src/efl_util.c index d2dbca4..6a98780 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -49,6 +49,8 @@ #define LOG_TAG "TIZEN_N_EFL_UTIL" #define EFL_UTIL_INPUT_GENERATOR_TOUCH_MAX_FINGER 10 +#define NUM_EVENT_WAIT_DONE_COUNT 5 + typedef struct _Efl_Util_Wl_Surface_Lv_Info { void *surface; /* wl_surface */ @@ -769,7 +771,7 @@ efl_util_set_notification_window_level(Evas_Object *window, if (lv_info->wait_for_done) { int count = 0; - while (lv_info->wait_for_done && (count < 3)) + while (lv_info->wait_for_done && (count < NUM_EVENT_WAIT_DONE_COUNT)) { ecore_wl2_display_flush(_eflutil.wl.wl2_display); wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); @@ -834,7 +836,7 @@ efl_util_get_notification_window_level(Evas_Object *window, if (lv_info->wait_for_done) { int count = 0; - while ((lv_info->wait_for_done) && (count < 3)) + while ((lv_info->wait_for_done) && (count < NUM_EVENT_WAIT_DONE_COUNT)) { ecore_wl2_display_flush(_eflutil.wl.wl2_display); wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); @@ -959,7 +961,7 @@ efl_util_set_window_screen_mode(Evas_Object *window, if (scr_mode_info->wait_for_done) { int count = 0; - while (scr_mode_info->wait_for_done && (count < 3)) + while (scr_mode_info->wait_for_done && (count < NUM_EVENT_WAIT_DONE_COUNT)) { ecore_wl2_display_flush(_eflutil.wl.wl2_display); wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); @@ -1092,7 +1094,7 @@ efl_util_set_window_brightness(Evas_Object *window, int brightness) if (brightness_info->wait_for_done) { int count = 0; - while (brightness_info->wait_for_done && (count < 3)) + while (brightness_info->wait_for_done && (count < NUM_EVENT_WAIT_DONE_COUNT)) { ecore_wl2_display_flush(_eflutil.wl.wl2_display); wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); -- 2.34.1