summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2019-04-22 07:06:58 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-22 07:06:58 -0400
commit410c1f95879e46a5e52132662d4c43b74e95a251 (patch)
tree87477e4b67b3f7e8dea178bdb3c4a98d8d62391c /src/lib/ecore_wl2/ecore_wl2_input.c
parent3d44b9bdb8d0721600663fb4744d658ab03ffbbb (diff)
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
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 0d480f50e8..fb50d04117 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -1242,6 +1242,8 @@ _touch_cb_up(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int serial
1242 if ((input->grab.window) && (input->grab.button == BTN_LEFT) && 1242 if ((input->grab.window) && (input->grab.button == BTN_LEFT) &&
1243 (!input->grab.count)) 1243 (!input->grab.count))
1244 _ecore_wl2_input_ungrab(input); 1244 _ecore_wl2_input_ungrab(input);
1245
1246 input->focus.touch = NULL;
1245} 1247}
1246 1248
1247static void 1249static void