e_comp_wl: send a touch cancel event only when the touching ec is fully obscured 87/115287/2
authorJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 17 Feb 2017 08:05:33 +0000 (17:05 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 17 Feb 2017 08:08:36 +0000 (00:08 -0800)
Change-Id: I96bcac84a2134b998f0c0c5abf44921bfb279a67

src/bin/e_comp_wl.c

index d1afbcb4c7ed6fe63b61c1a7605fe55ce2a22876..ed80e9dfa360fff9fb1141ae48143827a1162686 100644 (file)
@@ -688,7 +688,8 @@ _e_comp_wl_evas_cb_restack(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EIN
    if (e_object_is_del(E_OBJECT(ec))) return;
    if (ec->comp_data->sub.restacking) return;
 
-   _e_comp_wl_touch_cancel();
+   if (ec->visibility.obscured == E_VISIBILITY_FULLY_OBSCURED)
+     _e_comp_wl_touch_cancel();
 
    /* return if ec isn't both a parent of a subsurface and a subsurface itself */
    if (!ec->comp_data->sub.list && !ec->comp_data->sub.below_list && !ec->comp_data->sub.data)