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
This commit is contained in:
Hermet Park 2021-07-05 18:07:04 +09:00
parent a651cbe1a7
commit afba465735
1 changed files with 1 additions and 1 deletions

View File

@ -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;