summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-27 11:23:30 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-27 11:23:30 -0500
commitfdf0aee35c581489771e65c70e337728895c89e1 (patch)
treeb6eb4a10efe658e65be850ed3a69ff01600b6183
parent7adcaedc081db2fd8c039b3e1416654d30b8b476 (diff)
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
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 0e0e3ce0b7..0d7aaaa727 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -1235,7 +1235,7 @@ _touch_cb_up(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int serial
1235 1235
1236 input = data; 1236 input = data;
1237 if (!input) return; 1237 if (!input) return;
1238 if (!input->focus.touch) return; 1238 EINA_SAFETY_ON_NULL_RETURN(input->focus.touch); //if this is happening, then we are getting up events in a invalid state
1239 1239
1240 input->timestamp = timestamp; 1240 input->timestamp = timestamp;
1241 input->display->serial = serial; 1241 input->display->serial = serial;