From afba465735a12cd3d0283a4cbb89e5fc9881b005 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 5 Jul 2021 18:07:04 +0900 Subject: [PATCH] ecore_wl2: prevent invalid timer if the input is invalid. Summary: It is non-sense that running timer even if the input/timer is invalid. Stop the timer to prevent invalid key down repeating. Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12285 --- src/lib/ecore_wl2/ecore_wl2_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 0d7aaaa727..e205d335a2 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -991,7 +991,7 @@ _keyboard_cb_repeat(void *data) Ecore_Wl2_Window *window; input = data; - if (!input) return ECORE_CALLBACK_RENEW; + if (!input || !input->repeat.timer) return ECORE_CALLBACK_CANCEL; window = input->focus.keyboard; if (!window) goto out;