From: Doyoun Kang Date: Fri, 14 Jul 2023 01:21:25 +0000 (+0900) Subject: increase the wait_for_done event count (3->5) X-Git-Tag: accepted/tizen/8.0/unified/20231005.092651~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fapi%2Fefl-util.git;a=commitdiff_plain;h=d6af4e947d38972c7dabf1eea66b07a26c49a9d6 increase the wait_for_done event count (3->5) Change-Id: I0e0ed21a634300974a7dad0d819bec2af40e39c2 --- 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);