From: duna.oh Date: Wed, 15 Nov 2023 07:26:39 +0000 (+0900) Subject: input_generator: fix to check touch_count only if set_touch_count() is requested X-Git-Tag: accepted/tizen/unified/20231120.023140~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=557a3978fd024d27deecb5522d231323a5a9892a;p=platform%2Fcore%2Fapi%2Fefl-util.git input_generator: fix to check touch_count only if set_touch_count() is requested Change-Id: I1cc20c667e12d27d95adea34806757e65d895fad --- diff --git a/src/efl_util.c b/src/efl_util.c index 88fb0dc..76ef0dc 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -1456,7 +1456,8 @@ efl_util_input_generate_touch(efl_util_inputgen_h inputgen_h, int idx, EINA_SAFETY_ON_FALSE_RETURN_VAL((x > 0 && y > 0), EFL_UTIL_ERROR_INVALID_PARAMETER); EINA_SAFETY_ON_FALSE_RETURN_VAL(inputgen_h->init_type & EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN, EFL_UTIL_ERROR_NO_SUCH_DEVICE); - if (_eflutil.wl.devmgr.max_touch_count != _eflutil.wl.devmgr.request_touch_count) + if (_eflutil.wl.devmgr.request_touch_count != 0 && + _eflutil.wl.devmgr.max_touch_count != _eflutil.wl.devmgr.request_touch_count) wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); if (idx >= _eflutil.wl.devmgr.max_touch_count)