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:
Marcel Hollerbach 2020-01-27 11:23:30 -05:00 committed by Christopher Michael
parent 7adcaedc08
commit fdf0aee35c
1 changed files with 1 additions and 1 deletions

View File

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