forked from enlightenment/efl
ecore_wl2_input: fix a way it works when it has multiple input devices
Summary: if there are multiple input devices, especially touch and mouse type devices simultaneous. a logic can't recognize the current input device in _ecore_wl2_input_mouse_move_send function. because focus.touch would not be cleared even touch actions from user has finished. This patch clears input->focus.touch if users release their finger from touch device. Reviewers: raster, eagleeye, devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8673
This commit is contained in:
parent
3d44b9bdb8
commit
410c1f9587
|
@ -1242,6 +1242,8 @@ _touch_cb_up(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int serial
|
|||
if ((input->grab.window) && (input->grab.button == BTN_LEFT) &&
|
||||
(!input->grab.count))
|
||||
_ecore_wl2_input_ungrab(input);
|
||||
|
||||
input->focus.touch = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue