forked from enlightenment/efl
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:
parent
a651cbe1a7
commit
afba465735
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue