forked from enlightenment/efl
ecore_wl2: do not silently return
Summary: if we are getting a up event after our touch window object is not focused anymore, then the compositor has sent a invalid up. Beeing explicit here is important, otherwise we might leak a pressed finger on the touchscreen. Depends on D11199 Reviewers: zmike, devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11200
This commit is contained in:
parent
7adcaedc08
commit
fdf0aee35c
|
@ -1235,7 +1235,7 @@ _touch_cb_up(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int serial
|
|||
|
||||
input = data;
|
||||
if (!input) return;
|
||||
if (!input->focus.touch) return;
|
||||
EINA_SAFETY_ON_NULL_RETURN(input->focus.touch); //if this is happening, then we are getting up events in a invalid state
|
||||
|
||||
input->timestamp = timestamp;
|
||||
input->display->serial = serial;
|
||||
|
|
Loading…
Reference in New Issue