gesture: release the multi-touch before gesture injecting 24/14124/1
authorGiWoong Kim <giwoong.kim@samsung.com>
Tue, 24 Dec 2013 05:18:33 +0000 (14:18 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Tue, 24 Dec 2013 05:18:33 +0000 (14:18 +0900)
release the multi-touch before gesture event injecting
(maru_sdl)

Change-Id: Ib54dede198ab41a8739b29936986a1cfe6dac7a2
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/ecs/ecs_msg.c

index 7909abb..8bd31b3 100644 (file)
 
 #include "ecs.h"
 #include "mloop_event.h"
+#ifndef CONFIG_USE_SHM
+#include "maru_finger.h"
+#endif
+
 #include "hw/maru_virtio_evdi.h"
 #include "hw/maru_virtio_sensor.h"
 #include "hw/maru_virtio_nfc.h"
@@ -364,7 +368,12 @@ bool msgproc_device_req(ECS_Client* ccli, ECS__DeviceReq* msg)
             notify_host_kbd_state(is_on);
         }
     } else if (!strncmp(cmd, "gesture", strlen("gesture"))) {
-        // TODO: release multi-touch
+        /* release multi-touch */
+#ifndef CONFIG_USE_SHM
+        clear_finger_slot(false);
+#else
+        // TODO:
+#endif
 
         LOG("%s\n", data);