From 7689fecba0070f7ba704774d1bab51169aac9179 Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Thu, 9 Nov 2023 18:41:11 +0900 Subject: [PATCH] input_generator: dispatch queue if touch_count is not updated as requested Change-Id: Ifa7f5e0aef0924800c65ab250081678dd6a02ac7 --- src/efl_util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/efl_util.c b/src/efl_util.c index 0f7794d..88fb0dc 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -1456,6 +1456,9 @@ 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) + wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue); + if (idx >= _eflutil.wl.devmgr.max_touch_count) return EFL_UTIL_ERROR_INVALID_PARAMETER; -- 2.34.1