zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=6a1369d26e221c50bc962b68ff5649594652b49d

commit 6a1369d26e221c50bc962b68ff5649594652b49d
Author: Wonki Kim <[email protected]>
Date:   Mon Apr 22 07:06:58 2019 -0400

    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
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 2 ++
 1 file changed, 2 insertions(+)

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
    if ((input->grab.window) && (input->grab.button == BTN_LEFT) &&
        (!input->grab.count))
      _ecore_wl2_input_ungrab(input);
+
+   input->focus.touch = NULL;
 }
 
 static void

-- 


Reply via email to