In _e_comp_wl_surface_state_commit(), there is a process of applying a new map
information to the ec if the viewport information of a given ec's buffer is changed.
Before applying the map information, if a touch down or move event is being sent to
the ec, we usually send a touch cancel event to it. This is done to prevent the
dramatic changes of touch event coordinates before and after applying
map information.
By the way, if the given ec is a 'video' ec, we must not send a touch
cancel event as the video ec itself doesn't get touch event(s).
The other ec which contains the video ec will be the touch event(s)
instead. Therefore we must not send a touch cancel to the 'video' ec.
Change-Id: I433329b226d5d268b96fe79572a6927198fc4d0e
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
if (ec->comp_data->scaler.buffer_viewport.changed)
{
- if (e_comp_wl->touch.pressed && !e_policy_client_is_keyboard_sub(ec))
+ if (e_comp_wl->touch.pressed &&
+ (!e_policy_client_is_keyboard_sub(ec)) && (!e_client_is_video(ec)))
e_comp_wl_touch_cancel();
e_comp_wl_map_apply(ec);