From: Jihoon Kim Date: Thu, 23 Jan 2025 04:20:23 +0000 (+0900) Subject: e_input_evdev: reduce duplicated code X-Git-Tag: accepted/tizen/unified/20250203.113944~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8a6142a11395e590bdf3377a6d81245493386ec;p=platform%2Fupstream%2Fenlightenment.git e_input_evdev: reduce duplicated code Change-Id: I1718c76fed691f22cc274463931aeea0734a964d Signed-off-by: Jihoon Kim --- diff --git a/src/bin/inputmgr/e_input_evdev.c b/src/bin/inputmgr/e_input_evdev.c index 56eea4e7e8..f3ab43726e 100644 --- a/src/bin/inputmgr/e_input_evdev.c +++ b/src/bin/inputmgr/e_input_evdev.c @@ -1828,12 +1828,11 @@ _touch_event_pending_flush(E_Input_Evdev *edev) EINA_LIST_FREE(edev->pending_touch_event, ev) { if ((ev->type == ECORE_EVENT_MOUSE_BUTTON_DOWN) || - (ev->type == ECORE_EVENT_MOUSE_BUTTON_UP)) + (ev->type == ECORE_EVENT_MOUSE_BUTTON_UP) || + (ev->type == ECORE_EVENT_MOUSE_BUTTON_CANCEL)) _input_event_add(edev, ev->type, EINA_TRUE, ev->event, _e_input_event_mouse_button_cb_free, NULL); else if (ev->type == ECORE_EVENT_MOUSE_MOVE) _input_event_add(edev, ev->type, EINA_TRUE, ev->event, _e_input_event_mouse_move_cb_free, NULL); - else if (ev->type == ECORE_EVENT_MOUSE_BUTTON_CANCEL) - _input_event_add(edev, ev->type, EINA_TRUE, ev->event, _e_input_event_mouse_button_cb_free, NULL); else { ELOGF("CRI", "NOT Supported pending event. type:%d", NULL, ev->type);